Skip to content

Commit

Permalink
fix: only check for blank space between status entries in expand_temp…
Browse files Browse the repository at this point in the history
…late (#834)

* only check for blank space between status entries in expand_template

* chore: update tool integrity

---------

Co-authored-by: Alex Eagle <[email protected]>
  • Loading branch information
com6056 and alexeagle authored May 6, 2024
1 parent fdf3be1 commit d8d22cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tools/expand_template/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func main() {
}

// captures every `KEY VALUE` line in the status file.
// for explanation see: https://regex101.com/r/3Lfw6U/2
var STATUS_REGEX = regexp.MustCompile(`(?m)^([^\s]+)\s+([^\n]*)$`)
// for explanation see: https://regex101.com/r/cr6wX1/1
var STATUS_REGEX = regexp.MustCompile(`(?m)^([^\s]+)[[:blank:]]+([^\n]*)$`)

func parseStatusFile(statusFilePath string) (map[string]string, error) {
statusFile, err := os.ReadFile(statusFilePath)
Expand Down
12 changes: 6 additions & 6 deletions tools/integrity.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ COPY_TO_DIRECTORY_INTEGRITY = {
"windows_amd64": "sha256-nLybvOhMDWUw+2OyjfaFzmn08IwpO1tF80KwP2rrAPs=",
}
EXPAND_TEMPLATE_INTEGRITY = {
"darwin_amd64": "sha256-of+GYxwASXo/M3jMiWSpkzRDlnvr8f4vLFGEe0qI/40=",
"darwin_arm64": "sha256-FgiEWACZfXv5sUzDq24AkSclRQmCVDJodjieSMSTpnk=",
"freebsd_amd64": "sha256-sD0e4+DzdE9s2sKvF4AnR/uAq9opjJkmUzhVDfP/eEM=",
"linux_amd64": "sha256-0c4UV/JPDUnksH6y6sy3c7Fw8Uag89Yek/Ke0EpQ5mI=",
"linux_arm64": "sha256-0OPskN8X+uHYmLiPJDGGHFZTUqQjAOkn91d0I+PU8AM=",
"windows_amd64": "sha256-TZZP702IBhtT+qeuD3opd5s6jmBont3oi9f05aIsstA=",
"darwin_amd64": "sha256-pu46U2pS+Sw54B1Bx0OBKvztzBBwnxLQp5fstbrx+To=",
"darwin_arm64": "sha256-wn39/0aGKGd6O6ZCZJnVIPwuScDieELUwrhRITHSPJU=",
"freebsd_amd64": "sha256-5q9RKZAyoxJiwD1dyjeAmo0g/sMVWM4m//DkmkJIZQo=",
"linux_amd64": "sha256-fuHVMGdTm9Ubfk5yufvGbV4g7d9dXUQqUu1kAiawmB4=",
"linux_arm64": "sha256-TLZIWcAB/YvXDM0RSGS/i7mO9ZadAiJ+uByX11uyJeI=",
"windows_amd64": "sha256-rhF8EkJ1y/3Hp/dKZwTJ3HtVPV+B6uqmtkhjUNFQRXA=",
}

0 comments on commit d8d22cb

Please sign in to comment.