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

Failed build: field replacements not found in type config.Archive #287

Closed
jimafisk opened this issue Jul 22, 2023 · 4 comments
Closed

Failed build: field replacements not found in type config.Archive #287

jimafisk opened this issue Jul 22, 2023 · 4 comments

Comments

@jimafisk
Copy link
Member

https://github.com/plentico/plenti/actions/runs/5631726747/job/15258975265

  ⨯ release failed after 0s                  error=yaml: unmarshal errors:
  line 34: field replacements not found in type config.Archive
Error: The process '/opt/hostedtoolcache/goreleaser-action/1.19.2/x64/goreleaser' failed with exit code 1

Found pulumi/pulumi#13312 (comment) which pointed to https://goreleaser.com/deprecations/#archivesreplacements

@jimafisk
Copy link
Member Author

jimafisk commented Jul 22, 2023

Still errors: https://github.com/plentico/plenti/actions/runs/5631923973/job/15259358079

Turns out I was looking at the "before" tab, not the "after" tab on the deprecation notice (so was continuing to use the deprecated syntax).

@jimafisk
Copy link
Member Author

jimafisk commented Jul 22, 2023

Still fails (with new error): https://github.com/plentico/plenti/actions/runs/5631965765/job/15259444811

Error:   ⨯ release failed after 1m45s               error=template: tmpl:1: unexpected EOF
Error: The process '/opt/hostedtoolcache/goreleaser-action/1.19.2/x64/goreleaser' failed with exit code 1
Other errors
Error: /_/os/user/getgrouplist_unix.go:15: warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-389[87](https://github.com/plentico/plenti/actions/runs/5631726747/job/15258975265#step:9:88)73926/000039.o: in function `mygetgrgid_r':
Error: /_/os/user/cgo_lookup_unix.go:37: warning: Using 'getgrgid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3[89](https://github.com/plentico/plenti/actions/runs/5631726747/job/15258975265#step:9:90)8773926/000039.o: in function `mygetgrnam_r':
Error: /_/os/user/cgo_lookup_unix.go:42: warning: Using 'getgrnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3898773926/000039.o: in function `mygetpwnam_r':
Error: /_/os/user/cgo_lookup_unix.go:32: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3898773[92](https://github.com/plentico/plenti/actions/runs/5631726747/job/15258975265#step:9:93)6/000039.o: in function `mygetpwuid_r':
Error: /_/os/user/cgo_lookup_unix.go:27: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /tmp/go-link-3898773926/000004.o: in function `_cgo_6cc2654a8ed3_C2func_getaddrinfo':
Error: /tmp/go-build/cgo-gcc-prolog:58: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

jimafisk added a commit that referenced this issue Jul 22, 2023
@jimafisk
Copy link
Member Author

Simplifying the name_template syntax seemed to work. Build passed for v0.6.21.

@jimafisk
Copy link
Member Author

The version number in the new releases starts with a dot now (e.g. plenti_.0.6.21_Linux_64-bit.tar.gz): https://github.com/plentico/plenti/releases/tag/v0.6.21

This breaks the links on the downloads page of the website: https://plenti.co/download

Looks like we can get the version without the preceding dot using .RawVersion: https://goreleaser.com/customization/templates/

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