Starting with version 2.66.1 of ChezMoi the devcontainer feature-installation fails
0.363 ===========================================================================
0.363 Feature : Chezmoi Dotfile Manager
0.363 Description : Manage your dotfiles across multiple diverse machines, securely.
0.363 Id : ghcr.io/rio/features/chezmoi
0.363 Version : 1.1.0
0.363 Documentation :
0.363 Options :
0.363 VERSION="latest"
0.363 ===========================================================================
0.370 Installing chezmoi latest for amd64 ...
1.987 Downloading checksums https://github.com/twpayne/chezmoi/releases/download/v2.66.1/chezmoi_2.66.1_checksums.txt ...
2.249 2025-10-20 09:43:36 URL:https://release-assets.githubusercontent.com/github-production-release-asset/157245200/4dc6d2b3-486a-475e-9716-21fa7c349ec9?sp=r&sv=2018-11-09&sr=b&spr=https&se=2025-10-20T10%3A22%3A08Z&rscd=attachment%3B+filename%3Dchezmoi_2.66.1_checksums.txt&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2025-10-20T09%3A21%3A53Z&ske=2025-10-20T10%3A22%3A08Z&sks=b&skv=2018-11-09&sig=qbucD1g%2BTNLrFrNxZYKJ6%2FrMm6p6wUwPhh1HRANUd0k%3D&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc2MDk1MzcxNiwibmJmIjoxNzYwOTUzNDE2LCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.jVWboZ2uK4EWg46ys_DG3_r0kVWXhrmfnO3XVyPwRyY&response-content-disposition=attachment%3B%20filename%3Dchezmoi_2.66.1_checksums.txt&response-content-type=application%2Foctet-stream [9795/9795] -> "/tmp/checksums.txt" [1]
2.252 Downloading https://github.com/twpayne/chezmoi/releases/download/v2.66.1/chezmoi_2.66.1_linux_amd64.tar.gz ...
3.205 Verifying checksum 6245b50c278c1f29a4f9503f3742b7144d1263227e12bd20a4ac57de92a56d36
3.205 16f25c7af925eb572c0c9e79f27d3b4a5e2baf552722e987cb30cdc1236ce16d ...
3.260 sha256sum: WARNING: 1 line is improperly formatted
3.260 sha256sum: WARNING: 1 computed checksum did NOT match
3.260 /tmp/chezmoi.tar.gz: FAILED
3.261 ERROR: Feature "Chezmoi Dotfile Manager" (ghcr.io/rio/features/chezmoi) failed to install!
Reason: the new version contains an additional entry in the checksum file that matches, and so the checksum-extraction
|
local CHEZMOI_SHA="$(grep linux_${ARCH}.tar.gz /tmp/checksums.txt | cut -d ' ' -f 1)" |
Using the following code should work
grep linux_amd64.tar.gz$ /tmp/checksums.txt | cut -d ' ' -f 1
The chez-moi installer itself has the same problem (twpayne/chezmoi#4723)
Defining an Version >= 2.30 does not work at all, because it tries to download the checksum from a wrong location. Only chez-moi versions <2.30 are working currently workign with the devcontainer-feature
Starting with version 2.66.1 of ChezMoi the devcontainer feature-installation fails
Reason: the new version contains an additional entry in the checksum file that matches, and so the checksum-extraction
features/src/chezmoi/install.sh
Line 59 in 86c162a
Using the following code should work
The chez-moi installer itself has the same problem (twpayne/chezmoi#4723)
Defining an Version >= 2.30 does not work at all, because it tries to download the checksum from a wrong location. Only chez-moi versions <2.30 are working currently workign with the devcontainer-feature