Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check dependencies #7651

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions scripts/update-build-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -o errexit

grep -l "^FROM ghcr.io/uniget-org/tools/" tools/*/Dockerfile.template \
| cut -d/ -f2 \
| while read -r TOOL; do
make tools/${TOOL}/manifest.json
DEPS="$(
grep "^FROM ghcr.io/uniget-org/tools/" tools/${TOOL}/Dockerfile.template \
| cut -d' ' -f2 \
| cut -d: -f1 \
| cut -d/ -f4 \
| xargs echo -n
)"

if test -n "${DEPS}"; then
yq --inplace '.build_dependencies = []' tools/${TOOL}/manifest.yaml

for DEP in $DEPS; do
DEP=${DEP} yq --inplace '.build_dependencies += env(DEP)' tools/${TOOL}/manifest.yaml
done

sed -i -E 's/^\s{2}-/-/' tools/${TOOL}/manifest.yaml
fi
done
3 changes: 1 addition & 2 deletions tools/aider/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ license:
version: "0.59.0"
check: ${binary} --version | grep ^aider | cut -d' ' -f2
build_dependencies:
- python
- shiv
runtime_dependencies:
- python
Expand All @@ -27,4 +26,4 @@ renovate:
datasource: github-releases
package: Aider-AI/aider
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 1 addition & 1 deletion tools/alex/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ renovate:
priority: low
license:
name: MIT License
link: https://github.com/get-alex/alex/blob/main/license
link: https://github.com/get-alex/alex/blob/main/license
2 changes: 1 addition & 1 deletion tools/asciinema/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ renovate:
priority: low
license:
name: GPLv3
link: https://github.com/asciinema/asciinema/blob/develop/LICENSE
link: https://github.com/asciinema/asciinema/blob/develop/LICENSE
5 changes: 4 additions & 1 deletion tools/bento/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ license:
link: https://github.com/warpstreamlabs/bento/blob/main/LICENSE
version: "1.2.0"
check: ${binary} --version | grep ^Version | cut -d' ' -f2 | tr -d v
build_dependencies:
- make
- go
platforms:
- linux/amd64
- linux/arm64
Expand All @@ -20,4 +23,4 @@ renovate:
datasource: github-releases
package: warpstreamlabs/bento
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
4 changes: 3 additions & 1 deletion tools/bicep/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ license:
link: https://github.com/Azure/bicep/blob/main/LICENSE
version: "0.30.23"
check: ${binary} --version | cut -d' ' -f4
build_dependencies:
- musl
platforms:
- linux/amd64
- linux/arm64
Expand All @@ -27,4 +29,4 @@ renovate:
datasource: github-releases
package: Azure/bicep
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 2 additions & 0 deletions tools/bpftool/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $schema: https://tools.uniget.dev/schema.yaml
name: bpftool
version: "7.4.0"
check: ${binary} --version | grep ^bpftool | cut -d' ' -f2 | tr -d v
build_dependencies:
- make
platforms:
- linux/amd64
- linux/arm64
Expand Down
2 changes: 2 additions & 0 deletions tools/chainsaw/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $schema: https://tools.uniget.dev/schema.yaml
name: chainsaw
version: "0.2.11"
check: ${binary} version | grep ^Version | cut -d' ' -f2
build_dependencies:
- cosign
platforms:
- linux/amd64
- linux/arm64
Expand Down
4 changes: 2 additions & 2 deletions tools/cobra-cli/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ license:
version: "1.3.0"
check: "" # No version parameter
build_dependencies:
- go
- make
- go
platforms:
- linux/amd64
- linux/arm64
Expand All @@ -23,4 +23,4 @@ renovate:
datasource: github-releases
package: spf13/cobra-cli
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 1 addition & 1 deletion tools/composerize/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: composerize
version: "1.6.12"
check: "" # No version parameter
build_dependencies:
- nodejs-lts
- nodejs
- npm
runtime_dependencies:
- nodejs-lts
Expand Down
2 changes: 1 addition & 1 deletion tools/containerd-shim-spin/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version: "0.13.1"
binary: containerd-shim-spin-v2
check: ""
build_dependencies:
- rust
- make
- rust
conflicts_with:
- containerd-shim-spin-runwasi
platforms:
Expand Down
2 changes: 1 addition & 1 deletion tools/containerd-shim-wasmedge/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version: "0.4.0"
binary: containerd-shim-wasmedge-v1
check: "" # No version parameter
build_dependencies:
- rust
- make
- rust
runtime_dependencies:
- containerd
platforms:
Expand Down
2 changes: 1 addition & 1 deletion tools/containerd-shim-wasmer/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version: "0.4.0"
binary: containerd-shim-wasmer-v1
check: "" # No version parameter
build_dependencies:
- rust
- make
- rust
runtime_dependencies:
- containerd
platforms:
Expand Down
2 changes: 1 addition & 1 deletion tools/containerd-shim-wasmtime/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ version: "0.4.0"
binary: containerd-shim-wasmtime-v1
check: "" # No version parameter
build_dependencies:
- rust
- make
- rust
runtime_dependencies:
- containerd
platforms:
Expand Down
4 changes: 4 additions & 0 deletions tools/cyphernetes/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ $schema: https://tools.uniget.dev/schema.yaml
name: cyphernetes
version: "0.12.1"
check: "" # No version parameter
build_dependencies:
- make
- go
- goyacc
platforms:
- linux/amd64
tags:
Expand Down
2 changes: 1 addition & 1 deletion tools/decktape/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ renovate:
priority: low
license:
name: MIT License
link: https://github.com/astefanutti/decktape/blob/master/LICENSE
link: https://github.com/astefanutti/decktape/blob/master/LICENSE
2 changes: 1 addition & 1 deletion tools/devcontainer/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: "0.71.0"
check: ${binary} --version
build_dependencies:
- python
- nodejs-lts
- nodejs
- npm
- make
runtime_dependencies:
Expand Down
3 changes: 3 additions & 0 deletions tools/docker-credential-gcr/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: docker-credential-gcr
version: "2.1.25"
check: ${binary} version | cut -d' ' -f7
build_dependencies:
- go
- goreleaser
runtime_dependencies:
- docker
tags:
Expand Down
2 changes: 1 addition & 1 deletion tools/docker-manpages/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ binary: "false"
check: "" # No binary
build_dependencies:
- go
- go-md2man
- make
- go-md2man
platforms:
- linux/amd64
- linux/arm64
Expand Down
2 changes: 2 additions & 0 deletions tools/dotnet/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: dotnet
version: "8.0.400"
check: ${binary} --version
build_dependencies:
- curl
platforms:
- linux/amd64
- linux/arm64
Expand Down
5 changes: 4 additions & 1 deletion tools/fabric/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ license:
link: https://github.com/danielmiessler/fabric/blob/main/LICENSE
version: "1.4.55"
check: ${binary} --version | tr -d v
build_dependencies:
- make
- go
platforms:
- linux/amd64
- linux/arm64
Expand All @@ -20,4 +23,4 @@ renovate:
datasource: github-releases
package: danielmiessler/fabric
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 1 addition & 1 deletion tools/go-modiff/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ renovate:
datasource: github-releases
package: saschagrunert/go-modiff
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
4 changes: 2 additions & 2 deletions tools/gobump/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ license:
version: "0.8.0"
check: ${binary} version | grep GitVersion | tr -s ' ' | cut -d' ' -f2 | tr -d v
build_dependencies:
- go
- make
- go
platforms:
- linux/amd64
- linux/arm64
Expand All @@ -24,4 +24,4 @@ renovate:
datasource: github-releases
package: chainguard-dev/gobump
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 1 addition & 1 deletion tools/gox/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ renovate:
datasource: github-releases
package: authelia/gox
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 1 addition & 1 deletion tools/goyacc/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ renovate:
datasource: github-releases
package: golang/tools
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 1 addition & 1 deletion tools/grunt/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: grunt
version: "1.6.1"
check: ${binary} --version | cut -d' ' -f2 | tr -d v
build_dependencies:
- nodejs-lts
- nodejs
- npm
runtime_dependencies:
- nodejs-lts
Expand Down
2 changes: 1 addition & 1 deletion tools/inshellisense/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ renovate:
priority: low
license:
name: MIT License
link: https://github.com/microsoft/inshellisense/blob/main/LICENSE
link: https://github.com/microsoft/inshellisense/blob/main/LICENSE
2 changes: 1 addition & 1 deletion tools/jsonata-cli/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ renovate:
priority: low
license:
name: MIT License
link: https://github.com/rubystream/jsonata-cli/blob/main/LICENSE
link: https://github.com/rubystream/jsonata-cli/blob/main/LICENSE
3 changes: 3 additions & 0 deletions tools/k8spacket/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name: k8spacket
version: "2.1.1"
check: "" # No version parameter
build_dependencies:
- go
- bpftool
platforms:
- linux/amd64
#- linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion tools/keyoxide/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: keyoxide
version: "0.4.4"
check: ${binary} --version
build_dependencies:
- nodejs-lts
- nodejs
- npm
runtime_dependencies:
- nodejs-lts
Expand Down
5 changes: 4 additions & 1 deletion tools/kine/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ license:
link: https://github.com/k3s-io/kine/blob/master/LICENSE
version: "0.13.0"
check: ${binary} --version | cut -d' ' -f3
build_dependencies:
- make
- go
platforms:
- linux/amd64
- linux/arm64
Expand All @@ -20,4 +23,4 @@ renovate:
datasource: github-releases
package: k3s-io/kine
extractVersion: ^v(?<version>.+)$
priority: low
priority: low
2 changes: 2 additions & 0 deletions tools/kpxhs/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $schema: https://tools.uniget.dev/schema.yaml
name: kpxhs
version: "1.11"
check: ${binary} --version | tr -d '"'
build_dependencies:
- make
platforms:
- linux/amd64
tags:
Expand Down
2 changes: 1 addition & 1 deletion tools/kubebox/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: kubebox
version: "0.10.0"
check: ${binary} --version | cut -d' ' -f2
build_dependencies:
- nodejs-lts
- nodejs
- npm
runtime_dependencies:
- nodejs-lts
Expand Down
2 changes: 1 addition & 1 deletion tools/linkchecker/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ renovate:
priority: low
license:
name: GPLv2
link: https://github.com/linkchecker/linkchecker/blob/master/COPYING
link: https://github.com/linkchecker/linkchecker/blob/master/COPYING
2 changes: 1 addition & 1 deletion tools/n8n/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: n8n
version: "1.62.4"
check: ${binary} --version
build_dependencies:
- nodejs-lts
- nodejs
- npm
runtime_dependencies:
- nodejs-lts
Expand Down
2 changes: 1 addition & 1 deletion tools/newman/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: newman
version: "6.2.1"
check: ${binary} --version
build_dependencies:
- nodejs-lts
- nodejs
- npm
runtime_dependencies:
- nodejs-lts
Expand Down
1 change: 1 addition & 0 deletions tools/nsutils/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ binary: nslist
check: "" # No version parameter
build_dependencies:
- make
- libcap
tags:
- kernel/namespaces
- type/cli
Expand Down
Loading
Loading