File tree Expand file tree Collapse file tree 4 files changed +4
-73
lines changed
Expand file tree Collapse file tree 4 files changed +4
-73
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ func newSamlCmd(r *Root) {
6767 return err
6868 }
6969
70- allRoles := credentialexchange .MergeRoleChain (flags .role , r .rootFlags .roleChain , sc . flags .isSso )
70+ allRoles := credentialexchange .MergeRoleChain (flags .role , r .rootFlags .roleChain , flags .isSso )
7171 conf := credentialexchange.CredentialConfig {
7272 ProviderUrl : flags .providerUrl ,
7373 PrincipalArn : flags .principalArn ,
Original file line number Diff line number Diff line change 7474 - |
7575 mkdir -p .deps
7676 ldflags="-s -w -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Version={{.Version}}\" -X \"github.com/{{.RepoOwner}}/{{.BinName}}/cmd.Revision={{.Revision}}\" -extldflags -static"
77- CGO_ENABLED=0 GOPATH=$PWD/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} go build -mod=readonly -buildvcs=false -ldflags="$ldflags" -o dist/{{.BinName}}-${BUILD_GOOS}${BUILD_GOARCH} .
77+ CGO_ENABLED=0 GOPATH=$PWD/.deps GOOS=${BUILD_GOOS} GOARCH=${BUILD_GOARCH} go build -mod=readonly -buildvcs=false -ldflags="$ldflags" -o dist/{{.BinName}}-${BUILD_GOOS}- ${BUILD_GOARCH} .
7878 variations :
7979 - BUILD_GOOS : windows
8080 BUILD_GOARCH : amd64
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ func (web *Web) MustClose() {
227227 utils .Sleep (0.5 )
228228 // remove process just in case
229229 // os.Process is cross platform safe way to remove a process
230- if osprocess , err := os .FindProcess (web .launcher .PID ()); err != nil {
231- osprocess .Kill ()
230+ if osprocess , err := os .FindProcess (web .launcher .PID ()); err == nil && osprocess != nil {
231+ _ = osprocess .Kill ()
232232 }
233233}
You can’t perform that action at this time.
0 commit comments