-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
kos don't seem to infer main from build correctly #4382
Comments
I'll take a look when I get some time, thanks for reporting 🙏 |
Thanks @caarlos0 I managed to make it work, using |
This config works https://github.com/kyverno/chainsaw/blob/main/.goreleaser.yaml Notable change is the way |
ah, yes, the build goes a step further trying to look for main funcs in the cwd, which I guess ko does not. Probably we could run this (the |
Looks like ko expects a relative path to a folder, things like A more strict validation with a useful message explaining what is wrong would be great. |
ah, gotcha, I think probably try to validate it better + docs |
can probably add a validation regex to the yamlschema, too |
In |
It's a |
What happened?
We tried to use the
kos
section to build images with a main.go in a subfolder of the repo.We specified
main
in the build and referenced the build from thekos
section but it doesn't seem to infer the setting.See https://github.com/kyverno/chainsaw/blob/main/.goreleaser.yaml
How can we reproduce this?
The config file we use is visible at https://github.com/kyverno/chainsaw/blob/main/.goreleaser.yaml
Failing run logs https://github.com/kyverno/chainsaw/actions/runs/6638453325/job/18034825927
goreleaser version
GoReleaser Check
Search
Supporter
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: