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

chore: remove a double quote from asset names #61

Merged
merged 1 commit into from Nov 17, 2023
Merged

chore: remove a double quote from asset names #61

merged 1 commit into from Nov 17, 2023

Conversation

suzuki-shunsuke
Copy link
Contributor

What? (description)

Remove a double quote from the template of asset names.

Why? (reasoning)

This double quote is apparently unnecessary.
GitHub Releases removes double quotes from asset names automatically, but asset names in checksum files still have double quotes so the checksum file was broken.

https://github.com/particledecay/kconf/releases/tag/v2.0.0

https://github.com/particledecay/kconf/releases/download/v2.0.0/checksums.txt

f14383eeb2adf19a86ec5041d48d5c0382f2e48a3dbe5a1e8c24f79d4352588e  kconf-darwin-arm64-2.0.0".tar.gz
128c581e6b2ce144313e09789cb31845276ca9359970b38e30c4fc7b4fed865e  kconf-darwin-x86_64-2.0.0".tar.gz
5b95c70f1d17a79e03df7e58e9de307d62798611306844b66c089d9cb6671a08  kconf-linux-386-2.0.0".tar.gz
78c9dab53fca764823947a1a4b1fa7acfdc79fba9fe915df2b1d36aa09b398a7  kconf-linux-arm64-2.0.0".tar.gz
2d5537b3e33beec59989cf87545f3e09bb2b007213925f9977bf741f4767cf31  kconf-linux-x86_64-2.0.0".tar.gz
72d9f30fc24c441c181309c5f8238fe25086236957e6d17160dee1d96c04bea1  kconf-windows-386-2.0.0".tar.gz
c1d8724d4ba3f6addd45492b8399046d3159842bfa5aa77c2c2c7aaed4d3a1ca  kconf-windows-arm64-2.0.0".tar.gz
0efc74d555dbe67d76bed1df064c84d8b51923c13779c66fc981d2dc7f6fafad  kconf-windows-x86_64-2.0.0".tar.gz

Screenshots (if applicable)

GitHub Issue (if applicable)

Acceptance

Check your PR for the following:

  • you included tests
  • you linted your code
  • your PR has appropriate, atomic commits (interactive rebase!)
  • your commit message follows Conventional Commit format
  • you are not reducing the total test coverage

@suzuki-shunsuke
Copy link
Contributor Author

Test

Before

$ goreleaser release --snapshot --clean
  • starting release...
  • loading                                          path=.goreleaser.yml
  • skipping announce, publish and validate...
  • loading environment variables
  • getting and validating git state
    • git state                                      commit=b1261a8544ac8e1b806de9dae11dd6b078308ada branch=main current_tag=v2.0.0 previous_tag=v1.12.0 dirty=false
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
  • snapshotting
    • building snapshot...                           version=v2.0.0-next
  • running before hooks
    • running                                        hook=go mod download
    • took: 1s
  • checking distribution directory
    • cleaning dist
  • loading go mod information
    • took: 1s
  • build prerequisites
  • writing effective config file
    • writing                                        config=dist/config.yaml
  • building binaries
    • building                                       binary=dist/kconf_windows_386/kconf.exe
    • building                                       binary=dist/kconf_linux_amd64_v1/kconf
    • building                                       binary=dist/kconf_linux_386/kconf
    • building                                       binary=dist/kconf_darwin_arm64/kconf
    • building                                       binary=dist/kconf_windows_amd64_v1/kconf.exe
    • building                                       binary=dist/kconf_linux_arm64/kconf
    • building                                       binary=dist/kconf_windows_arm64/kconf.exe
    • building                                       binary=dist/kconf_darwin_amd64_v1/kconf
    • took: 1m4s
  • archives
    • creating                                       archive=dist/kconf-linux-arm64-v2.0.0-next".tar.gz
    • creating                                       archive=dist/kconf-linux-386-v2.0.0-next".tar.gz
    • creating                                       archive=dist/kconf-windows-arm64-v2.0.0-next".tar.gz
    • creating                                       archive=dist/kconf-windows-x86_64-v2.0.0-next".tar.gz
    • creating                                       archive=dist/kconf-darwin-arm64-v2.0.0-next".tar.gz
    • creating                                       archive=dist/kconf-windows-386-v2.0.0-next".tar.gz
    • creating                                       archive=dist/kconf-linux-x86_64-v2.0.0-next".tar.gz
    • creating                                       archive=dist/kconf-darwin-x86_64-v2.0.0-next".tar.gz
    • took: 3s
  • calculating checksums
  • storing release metadata
    • writing                                        file=dist/artifacts.json
    • writing                                        file=dist/metadata.json
  • release succeeded after 1m9s
  • thanks for using goreleaser!
$ ls -1 dist
artifacts.json
checksums.txt
config.yaml
'kconf-darwin-arm64-v2.0.0-next".tar.gz'
'kconf-darwin-x86_64-v2.0.0-next".tar.gz'
'kconf-linux-386-v2.0.0-next".tar.gz'
'kconf-linux-arm64-v2.0.0-next".tar.gz'
'kconf-linux-x86_64-v2.0.0-next".tar.gz'
'kconf-windows-386-v2.0.0-next".tar.gz'
'kconf-windows-arm64-v2.0.0-next".tar.gz'
'kconf-windows-x86_64-v2.0.0-next".tar.gz'
kconf_darwin_amd64_v1
kconf_darwin_arm64
kconf_linux_386
kconf_linux_amd64_v1
kconf_linux_arm64
kconf_windows_386
kconf_windows_amd64_v1
kconf_windows_arm64
metadata.json
$ cat dist/checksums.txt 
e5f233e84a8172b87d2558640421d9758db46e1947d79893284553cb0e7f24b6  kconf-darwin-arm64-v2.0.0-next".tar.gz
de35541b69f9ec304acebdbfb6cc4b24d7028a6efa516106d7962c0896b3ca84  kconf-darwin-x86_64-v2.0.0-next".tar.gz
936e0e5326fa11236639433f7d4c9275daa58b08cf857e39666ae0f2a02e0a2c  kconf-linux-386-v2.0.0-next".tar.gz
83256d0060b95549c6d1c012c1fc36f202ac0958de4debaa1f46b4970e80c7b0  kconf-linux-arm64-v2.0.0-next".tar.gz
8c60ebdb8caa2457bc9da48b3e2ae0690c45276456f016993cd50b4153dfd468  kconf-linux-x86_64-v2.0.0-next".tar.gz
9cf8a9c7befd728bab24b1b3b68a0efe48622912474efc76e94d5ddc2037fe53  kconf-windows-386-v2.0.0-next".tar.gz
dd864fcb8c01228694d7456778219e0dcb68f9b885a9e97c5d87d0b827e03ad0  kconf-windows-arm64-v2.0.0-next".tar.gz
861a07173b127406700cf83f82ec0425adb4a8b0e5301f15b5dc05d81c078b76  kconf-windows-x86_64-v2.0.0-next".tar.gz

After

$ goreleaser release --snapshot --clean
  • starting release...
  • loading                                          path=.goreleaser.yml
  • skipping announce, publish and validate...
  • loading environment variables
  • getting and validating git state
    • git state                                      commit=b1261a8544ac8e1b806de9dae11dd6b078308ada branch=main current_tag=v2.0.0 previous_tag=v1.12.0 dirty=true
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
  • snapshotting
    • building snapshot...                           version=v2.0.0-next
  • running before hooks
    • running                                        hook=go mod download
    • took: 1s
  • checking distribution directory
    • cleaning dist
  • loading go mod information
    • took: 1s
  • build prerequisites
  • writing effective config file
    • writing                                        config=dist/config.yaml
  • building binaries
    • building                                       binary=dist/kconf_windows_386/kconf.exe
    • building                                       binary=dist/kconf_windows_arm64/kconf.exe
    • building                                       binary=dist/kconf_darwin_arm64/kconf
    • building                                       binary=dist/kconf_windows_amd64_v1/kconf.exe
    • building                                       binary=dist/kconf_linux_386/kconf
    • building                                       binary=dist/kconf_linux_amd64_v1/kconf
    • building                                       binary=dist/kconf_linux_arm64/kconf
    • building                                       binary=dist/kconf_darwin_amd64_v1/kconf
    • took: 5s
  • archives
    • creating                                       archive=dist/kconf-windows-386-v2.0.0-next.tar.gz
    • creating                                       archive=dist/kconf-darwin-x86_64-v2.0.0-next.tar.gz
    • creating                                       archive=dist/kconf-darwin-arm64-v2.0.0-next.tar.gz
    • creating                                       archive=dist/kconf-linux-386-v2.0.0-next.tar.gz
    • creating                                       archive=dist/kconf-linux-arm64-v2.0.0-next.tar.gz
    • creating                                       archive=dist/kconf-windows-arm64-v2.0.0-next.tar.gz
    • creating                                       archive=dist/kconf-windows-x86_64-v2.0.0-next.tar.gz
    • creating                                       archive=dist/kconf-linux-x86_64-v2.0.0-next.tar.gz
    • took: 3s
  • calculating checksums
  • storing release metadata
    • writing                                        file=dist/artifacts.json
    • writing                                        file=dist/metadata.json
  • release succeeded after 9s
  • thanks for using goreleaser!
$ ls -1 dist
artifacts.json
checksums.txt
config.yaml
kconf-darwin-arm64-v2.0.0-next.tar.gz
kconf-darwin-x86_64-v2.0.0-next.tar.gz
kconf-linux-386-v2.0.0-next.tar.gz
kconf-linux-arm64-v2.0.0-next.tar.gz
kconf-linux-x86_64-v2.0.0-next.tar.gz
kconf-windows-386-v2.0.0-next.tar.gz
kconf-windows-arm64-v2.0.0-next.tar.gz
kconf-windows-x86_64-v2.0.0-next.tar.gz
kconf_darwin_amd64_v1
kconf_darwin_arm64
kconf_linux_386
kconf_linux_amd64_v1
kconf_linux_arm64
kconf_windows_386
kconf_windows_amd64_v1
kconf_windows_arm64
metadata.json
$ cat dist/checksums.txt 
90613e73a52504d10903f679df8947d925fb364f8a3877b1e51398b9af44652d  kconf-darwin-arm64-v2.0.0-next.tar.gz
1c9970887a8a032a1fca720b7815711896979f3d5b2cf26ae80f1f9dc63df3cc  kconf-darwin-x86_64-v2.0.0-next.tar.gz
8f7abaa414733287eaccaeedb7bd2700ee33ef71317db8e74a9f6040cdd23c2f  kconf-linux-386-v2.0.0-next.tar.gz
ac8ecd6cb7b86de39f76e94c215f5510b6343f9869322e5e781c56ff484de446  kconf-linux-arm64-v2.0.0-next.tar.gz
7ca57df9d1fd8866afdd15da52fa09e2433e04b7e84bd65488ba37388a2de035  kconf-linux-x86_64-v2.0.0-next.tar.gz
07371722a86a52ad0209f54f5c3708740c5cc626d3a9a3dd009e5e6aca569f8c  kconf-windows-386-v2.0.0-next.tar.gz
6ef0e392f9554e8e5cc036b3d02c7ac9156f3be20be7d5d67827fe1fbb17162d  kconf-windows-arm64-v2.0.0-next.tar.gz
4911f34cad3e5635a274ec521b2d4b28b5582f4908ac04b5e3dbe718f9b72ffb  kconf-windows-x86_64-v2.0.0-next.tar.gz

@suzuki-shunsuke
Copy link
Contributor Author

8404617 caused the bug.

@particledecay
Copy link
Owner

Thanks for the catch!

@particledecay particledecay merged commit 060e83d into particledecay:main Nov 17, 2023
5 checks passed
@suzuki-shunsuke suzuki-shunsuke deleted the chore-remove-quote-from-asset-names branch November 17, 2023 13:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants