File tree 7 files changed +19
-154
lines changed
7 files changed +19
-154
lines changed Original file line number Diff line number Diff line change 15
15
- name : Set up Go
16
16
uses : actions/setup-go@v2
17
17
with :
18
- go-version : 1.15
18
+ go-version : 1.16
19
19
20
20
- name : Check out code into the Go module directory
21
21
uses : actions/checkout@v2
Original file line number Diff line number Diff line change 15
15
- name : Set up Go
16
16
uses : actions/setup-go@v2
17
17
with :
18
- go-version : 1.15
18
+ go-version : 1.16
19
19
20
20
- name : Check out code into the Go module directory
21
21
uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ jobs:
18
18
name : Set up Go
19
19
uses : actions/setup-go@v2
20
20
with :
21
- go-version : 1.15
21
+ go-version : 1.16
22
22
-
23
23
name : Run GoReleaser
24
24
uses : goreleaser/goreleaser-action@v2
25
25
with :
26
26
version : latest
27
27
args : release --rm-dist
28
28
env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 14
14
15
15
module github.com/open-telemetry/opentelemetry-collector-builder
16
16
17
- go 1.14
17
+ go 1.16
18
18
19
19
require (
20
20
github.com/go-logr/logr v0.2.1
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ package scaffold
17
17
const Gomod = `
18
18
module {{.Distribution.Module}}
19
19
20
- go 1.15
20
+ go 1.16
21
21
22
22
require (
23
23
{{- range .Extensions}}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ GOBIN=$( go env GOBIN)
4
+ if [[ " $GO " == " " ]]; then
5
+ GOBIN=$( which go)
6
+ fi
7
+
8
+ if [[ " $GOBIN " == " " ]]; then
9
+ echo " Could not determine which Go binary to use."
10
+ exit 1
11
+ fi
12
+
13
+ echo " Using ${GOBIN} to compile the distributions."
14
+
3
15
# each attempt pauses for 100ms before retrying
4
16
max_retries=50
5
17
20
32
21
33
echo " Starting test '${test} ' at ` date` " >> " ${out} /test.log"
22
34
23
- go run . --config " ./test/${test} .builder.yaml" --output-path " ${out} " --name otelcol-built-test > " ${out} /builder.log" 2>&1
35
+ go run . --go " ${GOBIN} " -- config " ./test/${test} .builder.yaml" --output-path " ${out} " --name otelcol-built-test > " ${out} /builder.log" 2>&1
24
36
if [ $? != 0 ]; then
25
37
echo " ❌ FAIL ${test} . Failed to compile the test ${test} . Build logs:"
26
38
cat " ${out} /builder.log"
You can’t perform that action at this time.
0 commit comments