Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fig autocomplete feature #1360

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Conversation

developer-guy
Copy link
Member

Signed-off-by: Batuhan Apaydın [email protected]

Summary

will generate autocompletion typescript code of cosign for fig

Ticket Link

Fixes #1359

Release Note

feat: fig autocomplete feature

@developer-guy
Copy link
Member Author

kindly ping 🙋🏻‍♂️

@dlorenc
Copy link
Member

dlorenc commented Feb 2, 2022

Tried to re-run the CI, something failed in the go-releaser snapshot...

@dlorenc
Copy link
Member

dlorenc commented Feb 2, 2022

Still failing, maybe try a rebase?

/bin/sh: 1: goimports: not found
LDFLAGS="-X github.com/sigstore/cosign/pkg/version.GitVersion=21ca2f4 -X github.com/sigstore/cosign/pkg/version.gitCommit=21ca2f407f5261cee7a10089f9de0f17d5e259ec -X github.com/sigstore/cosign/pkg/version.gitTreeState="clean" -X github.com/sigstore/cosign/pkg/version.buildDate='2022-02-01T07:07:41Z'" goreleaser release --skip-sign --skip-publish --snapshot --rm-dist
   • releasing...             
   • loading config file       file=.goreleaser.yml
   • loading environment variables
   • getting and validating git state
      • ignoring errors because this is a snapshot error=git doesn't contain any tags. Either add a tag or use --snapshot
      • building...               commit=21ca2f407f5261cee7a10089f9de0f17d5e259ec latest tag=v0.0.0
      • pipe skipped              error=disabled during snapshot mode
   • parsing tag              
   • running before hooks     
      • running                   hook=go mod tidy
      • running                   hook=/bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
   ⨯ release failed after 43.37s error=hook failed: /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi': exit status 1; output: 
make: *** [release/release.mk:51: snapshot] Error 1
Error: Process completed with exit code 2.

@developer-guy developer-guy force-pushed the feature/1359 branch 2 times, most recently from 277acff to dfcc618 Compare February 9, 2022 07:21
@developer-guy
Copy link
Member Author

developer-guy commented Feb 9, 2022

cc: @cpanato, is that something related to an image ghcr.io/gythialy/golang-cross:v1.17.6-3@sha256:312ac8449408302e5fdde452578607cff075bc80052f4526254cd25fa96ce9e0?
Screen Shot 2022-02-09 at 12 00 06

@cpanato
Copy link
Member

cpanato commented Feb 9, 2022

cc: @cpanato, is that something related to an image ghcr.io/gythialy/golang-cross:v1.17.6-3@sha256:312ac8449408302e5fdde452578607cff075bc80052f4526254cd25fa96ce9e0? Screen Shot 2022-02-09 at 12 00 06

can you try to run go mod tidy and push the changes? if you ran and there is no change I will take a look

@developer-guy
Copy link
Member Author

cc: @cpanato, is that something related to an image ghcr.io/gythialy/golang-cross:v1.17.6-3@sha256:312ac8449408302e5fdde452578607cff075bc80052f4526254cd25fa96ce9e0? Screen Shot 2022-02-09 at 12 00 06

can you try to run go mod tidy and push the changes? if you ran and there is no change I will take a look

you are like a hero 🦸

@developer-guy
Copy link
Member Author

but same error :/

@cpanato
Copy link
Member

cpanato commented Feb 9, 2022

but same error :/

i will checkout your pr, give me some time

@cpanato
Copy link
Member

cpanato commented Feb 9, 2022

running the job locally it works, trying to check why

@cpanato
Copy link
Member

cpanato commented Feb 9, 2022

in ci it is complaing about

--- a/go.mod
+++ b/go.mod
@@ -58,6 +58,7 @@ require (
 	go.opentelemetry.io/contrib v1.3.0 // indirect
 	go.opentelemetry.io/proto/otlp v0.12.0 // indirect
 	golang.org/x/net v0.0.0-20220121210[141](https://github.com/sigstore/cosign/runs/5127527740?check_suite_focus=true#step:5:141)-e204ce36a2ba // indirect
+	golang.org/x/tools v0.1.9 // indirect
 	k8s.io/kube-openapi v0.0.0-20220124234850-424119656bbf // indirect
 	sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
 )
diff --git a/go.sum b/go.sum
index be66de7..42b62af 100644
--- a/go.sum
+++ b/go.sum
@@ -2494,8 +2494,9 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
 golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
 golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
 golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
-golang.org/x/tools v0.1.8 h1:P1HhGGuLW4aAclzjtmJdf0mJOjVUZUzOTqkAkWL+l6w=
 golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
+golang.org/x/tools v0.1.9 h1:j9KsMiaP1c3B0OTQGth0/k+miLGTgLsAFUCrF2vLcF8=
+golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU=
 golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20191011141410-1b5[146](https://github.com/sigstore/cosign/runs/5127527740?check_suite_focus=true#step:5:146)add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
 golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

@cpanato
Copy link
Member

cpanato commented Feb 9, 2022

also made a pr to add goimports in the cross builder image: gythialy/golang-cross#87

@cpanato
Copy link
Member

cpanato commented Feb 9, 2022

and i think i discover why, one sec

.github/workflows/validate-release.yml Outdated Show resolved Hide resolved
Signed-off-by: Batuhan Apaydın <[email protected]>
@developer-guy
Copy link
Member Author

thank you so much for helping me @cpanato, you're the best

@dlorenc dlorenc merged commit 1f38daf into sigstore:main Feb 10, 2022
@github-actions github-actions bot added this to the v1.6.0 milestone Feb 10, 2022
hatmarch pushed a commit to hatmarch/cosign that referenced this pull request Apr 19, 2022
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate fig autocompletion
3 participants