plentico / plenti

Static Site Generator with Go backend and Svelte frontend

Home Page:https://plenti.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jimafisk opened this issue · comments

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

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).

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

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

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/