Nothing Special   »   [go: up one dir, main page]

Skip to content

v2.36.0

Compare
Choose a tag to compare
@github-actions github-actions released this 28 Sep 23:41
· 125 commits to main since this release
v2.36.0
08043c1

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