spiegel_podman/hack
Kir Kolyshkin 403d126ac8 hack/install_golang.sh: revamp
1. Strip leading v from VERSION.

This will allow to simplify renovate rule at [1].

2. Fix git branch in the URL.

In golangci-lint v2 they've switched from master to main,
and it's not clear what will happen to master over time,
so let's just switch to main prophylactically.

3. Use -b option instead of undocumented hack.

Instead of relying on an undocumented feature of having BINDIR,
let's use -b option as recommended by the official docs at [2].

4. Avoid stuttering in the output.

Before:

	[kir@kir-tp1 podman]$ VERSION=2.0.2 ./hack/install_golangci.sh
	golangci-lint has version 2.0.2 built with go1.24.1 from 2b224c2c on 2025-03-25T21:36:18Z
	Using existing ./bin/golangci-lint has version 2.0.2 built with go1.24.1 from 2b224c2c on 2025-03-25T21:36:18Z

After:

	[kir@kir-tp1 podman]$ VERSION=2.0.2 ./hack/install_golangci.sh
	golangci-lint has version 2.0.2 built with go1.24.1 from 2b224c2c on 2025-03-25T21:36:18Z
	Using existing ./bin/golangci-lint

5. Fix shellcheck warnings.

6. Also retry when reinstalling.

The code logic to retry install for up to 5 times when installation
fails was introduced by commit dd8574022d ("CI: retry the golangci
install").

For some reason, the above commit only uses the logic when the binary is
not found. In a situation when the binary is found but is of the wrong
version, no retries are done.

Fix that.

7. Add -f option to curl.

As recommended by the official installation docs at [2].

[1]: 16f757f699/renovate/defaults.json5 (L106-L108)
[2]: https://golangci-lint.run/welcome/install/#binaries

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-02 19:19:05 -07:00
..
perf hack/perf/system-df.sh: add df benchmarks 2023-08-23 14:17:27 +02:00
podman-registry-go Bump Go module to v5 2024-02-08 09:35:39 -05:00
apparmor_tag.sh Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
bats system test parallelization: enable two-pass approach 2024-09-17 09:25:02 -06:00
branch_commits.rb Add script for identifying commits in release branches 2021-05-17 16:40:35 -04:00
btrfs_installed_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
btrfs_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
buildah-vendor-treadmill Buildah treadmill tweaks 2024-11-11 07:04:39 -07:00
check_root.sh Cleanup: fix problems reported by shell lint 2022-09-15 20:10:34 -06:00
fork_exec_snoop.bt Add eBPF snooper that traces the entire fork/exec graph of podman 2023-04-20 11:30:47 +02:00
get_ci_vm.sh Cirrus: Support EC2 instances in hack/get_ci_vm.sh 2022-08-03 14:25:09 -04:00
golangci-lint.sh Bump golangci-lint to v2.0.2 2025-03-31 12:27:55 -07:00
install_catatonit.sh cirrus: force-install catatonit 2021-11-15 12:53:25 +01:00
install_golangci.sh hack/install_golang.sh: revamp 2025-04-02 19:19:05 -07:00
libdm_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
libsubid_tag.sh Fix libsubid detection 2022-09-23 09:58:39 +01:00
make-and-check-size Don't block builds on podman-testing growing in size 2025-03-31 17:59:29 +02:00
man-page-checker add a podman-compose command 2023-07-24 19:23:04 +02:00
man-page-table-check Man pages: fix broken tables 2023-05-26 06:08:14 -06:00
markdown-preprocess make hack/markdown-preprocess parallel-safe 2023-02-02 05:32:38 -07:00
markdown-preprocess-review Man pages: refactor common options: cert-dir 2022-08-22 05:52:20 -06:00
markdown-preprocess.t markdown-preprocess: almost complete OO rewrite 2022-10-13 15:56:52 -06:00
podman-commands.sh Add shell completion with cobra 2020-11-12 11:38:31 +01:00
podman-registry CI: use local registry, part 2 of 3: fix tests 2024-07-11 04:39:45 -06:00
podman-socat Use url with scheme and path for the unix address 2023-09-11 07:55:12 +02:00
podman_cleanup_tracer.bt Instrument cleanup tracer to log weird volume removal flake 2024-10-30 18:50:07 +01:00
podmansnoop chore(podmansnoop): explain why crun comm is 3 2024-08-09 10:57:59 +02:00
podmanv2-retry Use bash binary from env instead of /bin/bash for scripts 2020-08-17 10:42:23 +02:00
swagger-check switch from "kube/play" endpoint to "play/kube" endpoint. 2022-08-02 12:09:59 +01:00
systemd_tag.sh Use CPP, CC and flags in dep check scripts 2020-11-06 10:44:27 +01:00
tree_status.sh hack/tree_status.sh: print diff at the end 2022-10-14 09:39:37 +02:00
xref-docker-options Remove references and checks for --gpus 2024-07-17 12:02:51 -04:00
xref-helpmsgs-manpages Create a podman-troubleshooting man page 2024-08-28 05:49:45 -06:00
xref-helpmsgs-manpages.t xref-helpmsgs-manpages: cross-check Commands.rst 2024-03-18 09:09:25 -06:00
xref-quadlet-docs Allow removing implicit quadlet systemd dependencies 2024-10-09 14:48:05 +02:00