File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RUN export VERSION=$(cat version) && \
2121 export BRANCH=$(cat branch) && \
2222 export REVISION=$(cat revision) && \
2323 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo \
24- -ldflags="-w -s -X github.com/anas-aso/ssllabs_exporter/build.Branch=${BRANCH} -X github.com/anas-aso/ssllabs_exporter/build.Revision=${REVISION} -X github.com/anas-aso/ssllabs_exporter/build.Version=${VERSION}" \
24+ -ldflags="-w -s -X github.com/anas-aso/ssllabs_exporter/internal/ build.Branch=${BRANCH} -X github.com/anas-aso/ssllabs_exporter/internal/ build.Revision=${REVISION} -X github.com/anas-aso/ssllabs_exporter/internal /build.Version=${VERSION}" \
2525 -o /workdir/ssllabs_exporter
2626
2727# Create a "nobody" user for the next image
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import "runtime"
44
55// build parameters
66var (
7- Branch string
7+ Branch = "dev"
88 GoVersion = runtime .Version ()
9- Revision string
10- Version string
9+ Revision = "n/a"
10+ Version = "n/a"
1111)
Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ var api *ssllabsApi.API
3030
3131func init () {
3232 api , _ = ssllabsApi .NewAPI ("ssllabs-exporter" , build .Version )
33+ if api == nil {
34+ panic ("failed to initialize API client. this should never happen!" )
35+ }
3336}
3437
3538// Analyze executes the SSL test HTTP requests
You can’t perform that action at this time.
0 commit comments