github aquaproj/aqua v2.36.0

latest releases: v2.37.2, v2.37.1, v2.37.0...
one month ago

Pull Requests | Issues | v2.35.0...v2.36.0

Features

#3130 #3134 support changing $0 by symlink

Some tools change their behavior by $0.

For example, granted changes the behavior based on args[0].

https://github.com/common-fate/granted/blob/e8de3ec7d62d543062d8be802b27abb3d8fac429/cmd/granted/main.go#L37-L44

	// Use a single binary to keep keychain ACLs simple, swapping behavior via argv[0]
	var app *cli.App
	switch filepath.Base(os.Args[0]) {
	case "assumego", "assumego.exe", "dassumego", "dassumego.exe":
		app = assume.GetCliApp()
	default:
		app = granted.GetCliApp()
	}

This release supports changing $0 by symlink.

        files:
          - name: granted
          - name: assumego
            src: granted
            link: assumego # link is the relative path from src to the symlink

Bug Fixes

#3136 #3137 remove: Handle panic error when package is not found @Shion1305
#3138 remove: Ignore not found commands

Don't miss a new aqua release

NewReleases is sending notifications on new releases.