mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 12:28:01 +08:00
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:
Executable
+13
@@ -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
|
||||
Reference in New Issue
Block a user