Skip to content

Commit 173b1e2

Browse files
committed
Update go and deps versions
Signed-off-by: Marcos Bjoerkelund <marcosbd@vmware.com>
1 parent 1804349 commit 173b1e2

6 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v2
2828
- uses: actions/setup-go@v2
2929
with:
30-
go-version: '^1.18.2' # The Go version to download (if necessary) and use.
30+
go-version: '^1.18.8' # The Go version to download (if necessary) and use.
3131
- name: Install Build Dependencies
3232
run: make get-build-deps
3333
- name: Download required modules

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# docker run --rm -i -e WHO=bitnami bitnami/render-template <<<"hello {{WHO}}"
44
#
5-
FROM golang:1.18-stretch as build
5+
FROM golang:1.18-bullseye as build
66

77
RUN apt-get update && apt-get install -y --no-install-recommends \
88
git make upx \
@@ -17,7 +17,7 @@ RUN make build
1717

1818
RUN upx --ultra-brute out/render-template
1919

20-
FROM bitnami/minideb:stretch
20+
FROM bitnami/minideb:bullseye
2121

2222
COPY --from=build /go/src/app/out/render-template /usr/local/bin/
2323

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module github.com/bitnami/render-template
33
go 1.18
44

55
require (
6-
github.com/aymerick/raymond v2.0.1+incompatible
6+
github.com/aymerick/raymond v2.0.2+incompatible
77
github.com/bitnami/gonit v0.1.0
8-
github.com/jessevdk/go-flags v1.3.0
8+
github.com/jessevdk/go-flags v1.5.0
99
github.com/juamedgod/cliassert v0.0.0-20180320011200-425256f2bb0b
1010
github.com/mmikulicic/multierror v0.0.0-20170428094957-c1ad6b5ecd26
1111
github.com/stretchr/testify v1.2.1
@@ -15,5 +15,6 @@ require (
1515
github.com/cesanta/errors v0.0.0-20160612174407-5adec772d663 // indirect
1616
github.com/davecgh/go-spew v1.1.1 // indirect
1717
github.com/pmezard/go-difflib v1.0.0 // indirect
18+
golang.org/x/sys v0.2.0 // indirect
1819
gopkg.in/yaml.v2 v2.4.0 // indirect
1920
)

go.sum

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
github.com/aymerick/raymond v2.0.1+incompatible h1:ZhYb+Bw5DNBMAl/UpvbxXP7pALGiMzCAE56QwHPqjjk=
22
github.com/aymerick/raymond v2.0.1+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
3+
github.com/aymerick/raymond v2.0.2+incompatible h1:VEp3GpgdAnv9B2GFyTvqgcKvY+mfKMjPOA3SbKLtnU0=
4+
github.com/aymerick/raymond v2.0.2+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
35
github.com/bitnami/gonit v0.1.0 h1:f0+5lCjX/1ar4iPrvlcE91TDE2nElxibNwvWXXy1sEU=
46
github.com/bitnami/gonit v0.1.0/go.mod h1:rWUClL7qwHeUIIP7SkokjfvE3RonglnANqJtzUpyHyU=
57
github.com/cesanta/errors v0.0.0-20160612174407-5adec772d663 h1:yxe0VAaLkwh7cXoC9IhNhUuJa91au1BMEOWWKxgjK94=
@@ -8,6 +10,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
810
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
911
github.com/jessevdk/go-flags v1.3.0 h1:QmKsgik/Z5fJ11ZtlcA8F+XW9dNybBNFQ1rngF3MmdU=
1012
github.com/jessevdk/go-flags v1.3.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
13+
github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc=
14+
github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
1115
github.com/juamedgod/cliassert v0.0.0-20180320011200-425256f2bb0b h1:j2GwaFh0vduPA3PilmBcsdWv0reobJHyIxGJnh9gIAA=
1216
github.com/juamedgod/cliassert v0.0.0-20180320011200-425256f2bb0b/go.mod h1:+N11eVKRhj1RNqjc9l+QMib0/XYixFOywXFH1zoGucg=
1317
github.com/mmikulicic/multierror v0.0.0-20170428094957-c1ad6b5ecd26 h1:Sk/rGhRF3TAxGR8Ldp3lAUw8GJehJct+5LVU79F13DI=
@@ -16,6 +20,9 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1620
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1721
github.com/stretchr/testify v1.2.1 h1:52QO5WkIUcHGIR7EnGagH88x1bUzqGXTC5/1bDTUQ7U=
1822
github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
23+
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
24+
golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A=
25+
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1926
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2027
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
2128
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=

handlebars_renderer.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"encoding/json"
55
"fmt"
66
"io"
7-
"io/ioutil"
87

98
"github.com/aymerick/raymond"
109
)
@@ -63,7 +62,7 @@ func (h *handlerbarsRenderer) RenderTemplate(in io.Reader, data *templateData) (
6362
}
6463

6564
func (h *handlerbarsRenderer) parseTemplate(in io.Reader) (*raymond.Template, error) {
66-
b, err := ioutil.ReadAll(in)
65+
b, err := io.ReadAll(in)
6766
if err != nil {
6867
return nil, err
6968
}

vars.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TOOL_PATH ?= $(BUILD_DIR)/$(TOOL_NAME)
88

99
BUILD_DATE := $(shell date -u '+%Y-%m-%d %I:%M:%S UTC' 2> /dev/null)
1010
GIT_HASH := $(shell git rev-parse HEAD 2> /dev/null)
11-
LDFLAGS="'main.buildDate=$(BUILD_DATE)' -X main.commit=$(GIT_HASH) -s -w"
11+
LDFLAGS="-X 'main.buildDate=$(BUILD_DATE)' -X main.commit=$(GIT_HASH) -s -w"
1212

1313
DEBUG ?= 0
1414

0 commit comments

Comments
 (0)