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

Failing build: Go Embed FS pattern not finding files #197

Closed
jimafisk opened this issue Jun 21, 2022 · 2 comments
Closed

Failing build: Go Embed FS pattern not finding files #197

jimafisk opened this issue Jun 21, 2022 · 2 comments

Comments

@jimafisk
Copy link
Member

Broken build: https://github.com/plentico/plenti/runs/6993318878?check_suite_focus=true

Error:

   ⨯release failed after 19.89serror=failed to build for linux_amd64_v1: exit status 1: cmd/root.go:19:12: pattern all:defaults/ejected/*: no matching files found
Error: The process '/opt/hostedtoolcache/goreleaser-action/1.9.2/x64/goreleaser' failed with exit code 1

GoReleaser version found: v1.9.2

go-version: 1.16.x

I believe the all pattern for embed fs was added in Go v1.18: https://go-review.googlesource.com/c/website/+/393234/2/_content/doc/go1.18.html

@jimafisk
Copy link
Member Author

Updated Go version in go.mod and ran go mod tidy but the build still failed: https://github.com/plentico/plenti/runs/6993643765?check_suite_focus=true

Needed to update Go version to 1.18 in the GitHub Action: .github/workflows/release.yml

@jimafisk
Copy link
Member Author

Passing build for v0.5.8

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

No branches or pull requests

1 participant