aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--env.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/env.go b/env.go
index 2de0d67..c1f1dea 100644
--- a/env.go
+++ b/env.go
@@ -536,9 +536,12 @@ func (env *Env) newPackage(fullPath string) (err error) {
}
} else {
if curPkg.Version != pkg.Version {
- curPkg.VersionNext = pkg.Version
- curPkg.state = packageStateChange
- env.countUpdate++
+ if (curPkg.isTag && pkg.isTag) ||
+ (!curPkg.isTag && !pkg.isTag) {
+ curPkg.VersionNext = pkg.Version
+ curPkg.state = packageStateChange
+ env.countUpdate++
+ }
}
}