From 81e253ea1c57cd683abc83f29c3d27f1466b6edf Mon Sep 17 00:00:00 2001 From: zjhe Date: Thu, 19 Jan 2023 13:38:23 +0800 Subject: [PATCH] skip version upgrade test on v0.x.x, there might be no tag on github repo --- upgradetest.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/upgradetest.go b/upgradetest.go index 2862037..ea8f535 100644 --- a/upgradetest.go +++ b/upgradetest.go @@ -74,6 +74,9 @@ func unwrap(t interface{}) interface{} { } func moduleUpgrade(t *testing.T, owner string, repo string, moduleFolderRelativeToRoot string, newModulePath string, opts terraform.Options, currentMajorVer int) error { + if currentMajorVer == 0 { + return SkipV0Error + } latestTag, err := getLatestTag(owner, repo, currentMajorVer) if err != nil { return err