gzuidhof / tygo

Generate Typescript types from Golang source code
MIT License
597 stars 40 forks source link

Fix goreleaser config #29

Closed gzuidhof closed 1 year ago

gzuidhof commented 1 year ago

The latest Github Actions run is broken, I think the config needs to be updated as we were using some outdated config fields that have now been removed.

greyscaled commented 1 year ago
Flag --rm-dist has been deprecated, please use --clean instead
  • starting release...
  • loading config file                              file=goreleaser.yml
  ⨯ release failed after 0s                  error=yaml: unmarshal errors:
  line 14: field replacements not found in type config.Archive

https://github.com/gzuidhof/tygo/blob/e7d63ced9801670f68a24331f4a6260a4307201b/goreleaser.yml#L14

It was deprecated and removed as of : 1.19.0: https://github.com/goreleaser/goreleaser/releases/tag/v1.19.0 in https://github.com/goreleaser/goreleaser/pull/4075

https://github.com/goreleaser/goreleaser/blob/main/www/docs/deprecations.md#archivesreplacements

gzuidhof commented 1 year ago

In a different project we use

archives:
  - id: somename
    name_template: >-
      {{ .ProjectName }}_
      {{- .Tag }}_
      {{- .Os }}_
      {{- .Arch}}
    format_overrides:
      - goos: windows
        format: zip

Maybe that will do the job here too :)