Skip to content

Commit 6331fda

Browse files
committed
Test the linter configuration
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
1 parent 2b11833 commit 6331fda

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ go.lint.analysiskey-interval:
324324
@echo -n golangci-lint.cache-$$(( $$(date +%s) / (7 * 86400) ))-
325325

326326
go.lint.analysiskey:
327-
@echo $$(make go.lint.analysiskey-interval)$$(sha1sum go.sum | cut -d' ' -f1)
327+
@echo $$(make go.lint.analysiskey-interval)$$(sha1sum go.sum | cut -d' ' -f1)-test1
328328

329329
.PHONY: cobertura reviewable submodules fallthrough go.mod.cachedir go.cachedir go.lint.analysiskey-interval go.lint.analysiskey run crds.clean $(TERRAFORM_PROVIDER_SCHEMA)
330330

internal/clients/aws.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package clients
66

77
import (
88
"context"
9+
"crypto/rand"
910
"os"
1011
"reflect"
1112
"unsafe"
@@ -51,6 +52,7 @@ type SetupConfig struct {
5152

5253
func SelectTerraformSetup(config *SetupConfig) terraform.SetupFn { // nolint:gocyclo
5354
return func(ctx context.Context, c client.Client, mg resource.Managed) (terraform.Setup, error) {
55+
rand.Int(nil, nil)
5456
pc := &v1beta1.ProviderConfig{}
5557
var err error
5658
if err = c.Get(ctx, types.NamespacedName{Name: mg.GetProviderConfigReference().Name}, pc); err != nil {

0 commit comments

Comments
 (0)