Add gojq as a consistent, portable jq implementation

This commit is contained in:
Lockszmith (wsl@Sygin) 2025-04-12 09:37:04 -04:00
parent 3ae0677251
commit 811e646945
1 changed files with 11 additions and 0 deletions

View File

@ -148,6 +148,17 @@
*/}}
{{- $myArch = (printf "%s_%s" .chezmoi.os .chezmoi.arch) -}}
{{- with $app_name := "gojq" -}}
{{- with $repo := (printf "%s/%s" "itchyny" $app_name) -}}
{{- with $version := (gitHubLatestRelease $repo).GetTagName -}}
{{- $_ := set $externals (printf ".local/bin/%s" "jq") (dict
"type" "archive-file"
"url" (printf "https://github.com/%s/releases/download/%s/%s_%s_%s.tar.gz" $repo $version $app_name $version $myArch)
"path" (printf "%s_%s_%s/%s" $app_name $version $myArch $app_name)
"executable" true
"refreshPeriod" $defaultRefresh
) -}}{{- end -}}{{- end -}}{{- end -}}
{{- with $app_name := "git-credential-oauth" -}}
{{- with $repo := (printf "%s/%s" "hickford" $app_name) -}}
{{- with $version := trimPrefix "v" (gitHubLatestRelease $repo).GetTagName -}}