Skip to content

Commit a4e3fec

Browse files
authored
Merge pull request #27 from jaypipes/remove-old-repo
remove aws/aws-controllers-k8s from code-generator
2 parents d7348ce + 39a4f25 commit a4e3fec

File tree

3 files changed

+8
-85
lines changed

3 files changed

+8
-85
lines changed

cmd/ack-generate/command/common.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ func cloneSDKRepo(srcPath string) (string, error) {
8989
clonePath := filepath.Join(srcPath, "aws-sdk-go")
9090
if optRefreshCache {
9191
if _, err := os.Stat(filepath.Join(clonePath, ".git")); !os.IsNotExist(err) {
92-
cmd := exec.Command("git", "-C", clonePath, "checkout", "tags/"+sdkVersion)
92+
cmd := exec.Command("git", "-C", clonePath, "fetch", "--all", "--tags")
93+
if err = cmd.Run(); err != nil {
94+
return "", err
95+
}
96+
cmd = exec.Command("git", "-C", clonePath, "checkout", "tags/"+sdkVersion)
9397
return clonePath, cmd.Run()
9498
}
9599
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/aws-controllers-k8s/code-generator
33
go 1.14
44

55
require (
6-
github.com/aws-controllers-k8s/runtime v0.0.3
6+
github.com/aws-controllers-k8s/runtime v0.0.4
77
github.com/aws/aws-sdk-go v1.37.4
88
github.com/dlclark/regexp2 v1.4.0
99
// pin to v0.1.1 due to release problem with v0.1.2

0 commit comments

Comments
 (0)