build(go): switch to go 1.21 (#2049)

Also update to the latest swaggo version, as the previous one did not work with go 1.21

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
Andrei Aaron
2024-02-07 20:54:28 +02:00
committed by GitHub
parent 4e33c172bb
commit 60dc8569ec
35 changed files with 182 additions and 50 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
set -x
export GOFLAGS="-tags=debug,imagetrust,lint,metrics,mgmt,profile,scrub,search,sync,ui,userprefs,containers_image_openpgp"
echo "Module | License URL | License" > THIRD-PARTY-LICENSES.md
echo "---|---|---" >> THIRD-PARTY-LICENSES.md;
for i in $(go list -m all | awk '{print $1}'); do
l=$(go-licenses csv $i 2>/dev/null)
if [ $? -ne 0 ]; then continue; fi
echo $l | tr \, \| | tr ' ' '\n'
done | LC_ALL=C sort -u >> THIRD-PARTY-LICENSES.md