refaktor / rye

homoiconic dynamic programming language with some new ideas
https://ryelang.org
Apache License 2.0
406 stars 21 forks source link

Update goreleaser config for v2 #270

Closed stefanb closed 1 month ago

stefanb commented 1 month ago

In https://github.com/refaktor/rye/pull/244 there were some breaking changes, so the config needs to be updated https://goreleaser.com/blog/goreleaser-v2/#upgrading

No larger changes required in case of rye, just a typo and version bump to prevent a warning.

before:

$ go install github.com/goreleaser/goreleaser/v2@latest

$ goreleaser --version
  ____       ____      _
 / ___| ___ |  _ \ ___| | ___  __ _ ___  ___ _ __
| |  _ / _ \| |_) / _ \ |/ _ \/ _` / __|/ _ \ '__|
| |_| | (_) |  _ <  __/ |  __/ (_| \__ \  __/ |
 \____|\___/|_| \_\___|_|\___|\__,_|___/\___|_|
goreleaser: Deliver Go Binaries as fast and easily as possible
https://goreleaser.com

GitVersion:    v2.1.0
GitCommit:     unknown
GitTreeState:  unknown
BuildDate:     unknown
BuiltBy:       unknown
GoVersion:     go1.22.5
Compiler:      gc
ModuleSum:     h1:c2nYTJzCSHmWw5duS+iC/ETYLlyyBTZPesf0ABnTbhw=
Platform:      darwin/arm64

$ goreleaser check                                     
  • only configurations files on  version: 2  are supported, yours is  version: 0 , please update your configuration
  • checking                                 path=.goreleaser.yaml
  • 1 configuration file(s) validated
  • thanks for using goreleaser!

after:

$ goreleaser check    
  • checking                                 path=.goreleaser.yaml
  • 1 configuration file(s) validated
  • thanks for using goreleaser!

$ goreleaser release --snapshot --clean
  • skipping announce, publish and validate...
  • loading environment variables
  • getting and validating git state
    • git state                                      commit=c8bb9ed8bc3d947534eb0c08dee97211aa6f8f91 branch=goreleaser-v2 current_tag=v0.0.20 previous_tag=v0.0.19 dirty=false
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
  • snapshotting
    • building snapshot...                           version=0.0.21-next
  • checking distribution directory
  • setting up metadata
  • writing release metadata
  • loading go mod information
  • build prerequisites
  • building binaries
    • building                                       binary=dist/rye_js_wasm/rye.wasm
    • building                                       binary=dist/rye_linux_amd64_v1/rye
    • building                                       binary=dist/rye_windows_amd64_v1/rye.exe
    • building                                       binary=dist/rye_linux_arm64/rye
    • building                                       binary=dist/rye_windows_arm64/rye.exe
    • building                                       binary=dist/rye_darwin_amd64_v1/rye
    • building                                       binary=dist/rye_darwin_arm64/rye
    • building                                       binary=dist/rye_linux_arm_6/rye
    • overridden build details for jswasm            details={ [-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser] [] [-tags=b_tiny -trimpath] [] [] [CGO_ENABLED=0]}
  • archives
    • creating                                       archive=dist/rye_Windows_x86_64.zip
    • creating                                       archive=dist/rye_Linux_arm64.tar.gz
    • creating                                       archive=dist/rye_Darwin_arm64.tar.gz
    • creating                                       archive=dist/rye_Js_wasm.tar.gz
    • creating                                       archive=dist/rye_Darwin_x86_64.tar.gz
    • creating                                       archive=dist/rye_Windows_arm64.zip
    • creating                                       archive=dist/rye_Linux_x86_64.tar.gz
    • creating                                       archive=dist/rye_Linux_armv6.tar.gz
  • calculating checksums
  • writing artifacts metadata
  • release succeeded after 7s
  • thanks for using goreleaser!