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

goreleaser: error: unknown long flag '--snapshot', try --help #94

Closed
dzpao opened this issue Feb 10, 2020 · 4 comments
Closed

goreleaser: error: unknown long flag '--snapshot', try --help #94

dzpao opened this issue Feb 10, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@dzpao
Copy link

dzpao commented Feb 10, 2020

The github actions are broken.

See also:
https://github.com/mudclient/go-mud/runs/436203136?check_suite_focus=true#step:5:26

workflow:
https://github.com/mudclient/go-mud/actions/runs/37026103/workflow

config file:
https://github.com/mudclient/go-mud/blob/6ca1a37198db52f41ed1bbf6983a0e8b2540fadf/.goreleaser.yml

It looks like goreleaser-action adds parameters that should not be added when calling goreleaser.

@crazy-max
Copy link
Member

Hi @dzpao,

That's because goreleaser check used here in your workflow does not implement --snapshot flag.

@dzpao
Copy link
Author

dzpao commented Feb 10, 2020

Thank you for your reply.
So what should I do? I noticed that the goreleaser and goreleaser-action I used are both the latest version.

@crazy-max
Copy link
Member

@dzpao This is a limitation with this action. When I set it up, I hadn't thought about other use cases other than the release command. Keep you informed in the most appropriate way for your use case.

@crazy-max crazy-max added the bug Something isn't working label Feb 10, 2020
@crazy-max crazy-max self-assigned this Feb 10, 2020
crazy-max added a commit that referenced this issue Feb 10, 2020
Only handle snapshot flag for release cmd (#94)
Use core.info instead of console.log
crazy-max added a commit that referenced this issue Feb 11, 2020
* Improve git tag detection (#77)
* Only handle snapshot flag for release cmd (#94)
* Use core.info instead of console.log
* Update gitattributes
@crazy-max
Copy link
Member

@dzpao Latest release should fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants