Skip to content

Commit 08f97db

Browse files
authored
Merge pull request #39 from doitintl/fix-buildx
fix-buildx
2 parents 3a0f53c + 80419d8 commit 08f97db

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

.github/workflows/github-release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Go
2121
uses: actions/setup-go@v3
2222
with:
23-
go-version: '>=1.19.0'
23+
go-version: '>=1.21.0'
2424

2525
- name: Cross-Platform build
2626
run: |

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Go
2626
uses: actions/setup-go@v3
2727
with:
28-
go-version: '>=1.19.0'
28+
go-version: '>=1.21.0'
2929

3030
- name: Lint
3131
run: |

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax = docker/dockerfile:experimental
22

3-
FROM --platform=${BUILDPLATFORM} golang:1.19-alpine as builder
3+
FROM --platform=${BUILDPLATFORM} golang:1.21-alpine as builder
44
# passed by buildkit
55
ARG TARGETOS
66
ARG TARGETARCH

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module secrets-init
22

3-
go 1.19
3+
go 1.21
44

55
require (
66
cloud.google.com/go/compute v1.10.0

pkg/secrets/aws/secrets.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package aws
33
import (
44
"context"
55
"encoding/json"
6+
"sort"
67
"strings"
78

89
"secrets-init/pkg/secrets" //nolint:gci
@@ -96,7 +97,7 @@ func (sp *SecretsProvider) ResolveSecrets(_ context.Context, vars []string) ([]s
9697
}
9798
envs = append(envs, env)
9899
}
99-
100+
sort.Strings(envs)
100101
return envs, nil
101102
}
102103

pkg/secrets/aws/secrets_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ func TestSecretsProvider_ResolveSecrets(t *testing.T) {
4848
"test-secret-2=arn:aws:secretsmanager:87654321",
4949
},
5050
want: []string{
51-
"test-secret-1=test-secret-value-1",
5251
"non-secret=hello",
52+
"test-secret-1=test-secret-value-1",
5353
"test-secret-2=test-secret-value-2",
5454
},
5555
mockServiceProvider: func(mockSM *mocks.SecretsManagerAPI, mockSSM *mocks.SSMAPI) secrets.Provider {

0 commit comments

Comments
 (0)