support spaces in status (#820)
* support spaces in status * chore: update integrity hashes of go binaries --------- Co-authored-by: Alex Eagle <alex@aspect.dev>
This commit is contained in:
parent
5cc1a3a1be
commit
8c96b0eeb3
|
@ -71,8 +71,8 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// captures every `KEY VALUE` line in the status file.
|
// captures every `KEY VALUE` line in the status file.
|
||||||
// for explanation see: https://regex101.com/r/B28NN7/1
|
// for explanation see: https://regex101.com/r/3Lfw6U/2
|
||||||
var STATUS_REGEX = regexp.MustCompile(`(?m)^([^\s]+)\s+([^\n ]*)$`)
|
var STATUS_REGEX = regexp.MustCompile(`(?m)^([^\s]+)\s+([^\n]*)$`)
|
||||||
|
|
||||||
func parseStatusFile(statusFilePath string) (map[string]string, error) {
|
func parseStatusFile(statusFilePath string) (map[string]string, error) {
|
||||||
statusFile, err := os.ReadFile(statusFilePath)
|
statusFile, err := os.ReadFile(statusFilePath)
|
||||||
|
|
|
@ -17,10 +17,10 @@ COPY_TO_DIRECTORY_INTEGRITY = {
|
||||||
"windows_amd64": "sha256-nLybvOhMDWUw+2OyjfaFzmn08IwpO1tF80KwP2rrAPs=",
|
"windows_amd64": "sha256-nLybvOhMDWUw+2OyjfaFzmn08IwpO1tF80KwP2rrAPs=",
|
||||||
}
|
}
|
||||||
EXPAND_TEMPLATE_INTEGRITY = {
|
EXPAND_TEMPLATE_INTEGRITY = {
|
||||||
"darwin_amd64": "sha256-xfHAVVPnlehEhx3iz5b7a0jPgKiH6WSmX692D1t7ZXs=",
|
"darwin_amd64": "sha256-of+GYxwASXo/M3jMiWSpkzRDlnvr8f4vLFGEe0qI/40=",
|
||||||
"darwin_arm64": "sha256-p/ec4ni5Tk7m68ojoMA/pE087rzza1+R4h+WCpmPAGk=",
|
"darwin_arm64": "sha256-FgiEWACZfXv5sUzDq24AkSclRQmCVDJodjieSMSTpnk=",
|
||||||
"freebsd_amd64": "sha256-wylWEbSAn2K5PD524Tc85vapN3FOdKkcPTHOPx6Mpfw=",
|
"freebsd_amd64": "sha256-sD0e4+DzdE9s2sKvF4AnR/uAq9opjJkmUzhVDfP/eEM=",
|
||||||
"linux_amd64": "sha256-hqElemiHdXWu7T2Ic4FDK1UjyRHfSihVJh1UtALyZuo=",
|
"linux_amd64": "sha256-0c4UV/JPDUnksH6y6sy3c7Fw8Uag89Yek/Ke0EpQ5mI=",
|
||||||
"linux_arm64": "sha256-aGj0vuCjfejJ5Q8mJ7ROKat8qki5vLqrAmPXgWFP6m8=",
|
"linux_arm64": "sha256-0OPskN8X+uHYmLiPJDGGHFZTUqQjAOkn91d0I+PU8AM=",
|
||||||
"windows_amd64": "sha256-Zr24XvAZDyNPLddYGS19zBvpSQmMpqUVSh+ZS0wu/P8=",
|
"windows_amd64": "sha256-TZZP702IBhtT+qeuD3opd5s6jmBont3oi9f05aIsstA=",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue