Skip to content

Commit

Permalink
Fix go-licenses toolchain issues (#547)
Browse files Browse the repository at this point in the history
fix go-licenses toolchain issues
  • Loading branch information
alexmasi authored Jul 9, 2024
1 parent a333a10 commit b5d7825
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cloudbuild/external.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ build {
"git clone https://github.com/Mirantis/cri-dockerd.git",
"cd cri-dockerd",
"PATH=$PATH:/usr/local/go/bin",
"/home/$USER/go/bin/go-licenses check github.com/Mirantis/cri-dockerd",
"/home/$USER/go/bin/go-licenses save github.com/Mirantis/cri-dockerd --save_path=\"../third_party/licenses/cri-dockerd\"",
"/home/$USER/go/bin/go-licenses check github.com/Mirantis/cri-dockerd --ignore=$(go list std | awk 'NR > 1 { printf(\",\") } { printf(\"%s\",$0) } END { print \"\" }')",
"/home/$USER/go/bin/go-licenses save github.com/Mirantis/cri-dockerd --save_path=\"../third_party/licenses/cri-dockerd\" --ignore=$(go list std | awk 'NR > 1 { printf(\",\") } { printf(\"%s\",$0) } END { print \"\" }')",
"make cri-dockerd",
"sudo install -o root -g root -m 0755 cri-dockerd /usr/local/bin/cri-dockerd",
"sudo install packaging/systemd/* /etc/systemd/system",
Expand Down Expand Up @@ -146,8 +146,8 @@ build {
"git clone -b ${var.branch_name} https://github.com/openconfig/kne.git",
"cd kne",
"PATH=$PATH:/usr/local/go/bin",
"/home/$USER/go/bin/go-licenses check github.com/openconfig/kne/kne_cli",
"/home/$USER/go/bin/go-licenses save github.com/openconfig/kne/kne_cli --save_path=\"../third_party/licenses/kne_cli\"",
"/home/$USER/go/bin/go-licenses check github.com/openconfig/kne/kne_cli --ignore=$(go list std | awk 'NR > 1 { printf(\",\") } { printf(\"%s\",$0) } END { print \"\" }')",
"/home/$USER/go/bin/go-licenses save github.com/openconfig/kne/kne_cli --save_path=\"../third_party/licenses/kne_cli\" --ignore=$(go list std | awk 'NR > 1 { printf(\",\") } { printf(\"%s\",$0) } END { print \"\" }')",
"cd kne_cli",
"/usr/local/go/bin/go build -o kne",
"sudo cp kne /usr/local/bin/",
Expand All @@ -162,8 +162,8 @@ build {
"git clone https://github.com/openconfig/ondatra.git",
"cd ondatra",
"PATH=$PATH:/usr/local/go/bin",
"/home/$USER/go/bin/go-licenses check github.com/openconfig/ondatra",
"/home/$USER/go/bin/go-licenses save github.com/openconfig/ondatra --save_path=\"../third_party/licenses/ondatra\"",
"/home/$USER/go/bin/go-licenses check github.com/openconfig/ondatra --ignore=$(go list std | awk 'NR > 1 { printf(\",\") } { printf(\"%s\",$0) } END { print \"\" }')",
"/home/$USER/go/bin/go-licenses save github.com/openconfig/ondatra --save_path=\"../third_party/licenses/ondatra\" --ignore=$(go list std | awk 'NR > 1 { printf(\",\") } { printf(\"%s\",$0) } END { print \"\" }')",
]
}

Expand Down

0 comments on commit b5d7825

Please sign in to comment.