forked from cashapp/hermit-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use the right installer URL for the canary channel (cashapp#257)
* fix: use the right installer URL for the canary channel - We make changes for the generated bin/hermit to correctly identity the download URL for the canary channel. This part was overlooked in an earlier implementation. - The `InstallScriptSHAs` map is manually populated for the "canary" and "stable" channels, respectively, in `env.go`. - Update `ScriptSHAs` for the updated `bin/hermit` scripts, for "canary" and "stable" channels. - Add `InstallerSHA256Sums` map to the `Config` struct of the main Hermit app. - Update GHA CI step for sanity check of SHA256 sums of install script. - Fix a buggy integration test. * Add installer-sha-256 command This allows us to avoid inspecting the Hermit source for the CI test to validate checksum coherence in Hermit and in geninstaller. It makes the CI test more robust and less inelegant. * Make installer sums app configurable during init The default configuration for `InstallerSHA256Sum` is `hermit.InstallScriptSHAs`. This value now can be overridden by the main application. * Fix test: envfixture Provide an empty map as the extra input argument needed by hermit.Init(). * Run gofmt -s on env.go Reformatting so it's conformant.
- Loading branch information
Showing
9 changed files
with
88 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package app | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/alecthomas/kong" | ||
) | ||
|
||
type installersha256Cmd struct{} | ||
|
||
func (v *installersha256Cmd) Run(kctx kong.Vars) error { | ||
fmt.Println(kctx["installersha256"]) | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters