Skip to content

Commit a16c019

Browse files
committed
Continue iterating to get version working
1 parent b8795e2 commit a16c019

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ benchmark:
2424
hyperfine --ignore-failure -- "./bin/polylint --config examples/simple.yaml run ~/src/runbook"
2525

2626
build-dry-run:
27-
goreleaser release --clean --skip publish
27+
goreleaser release --clean --skip publish --snapshot

pkg/processors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func LoadConfigFile(content string) (ConfigFile, error) {
114114
}
115115

116116
// If version file is too new for binary version
117-
if semver.Compare(rawConfig.Version, PolylintVersion) == 1 {
117+
if semver.Compare(rawConfig.Version, viper.GetString("binary_version")) == 1 {
118118
fmt.Printf("Warning: config file version %s is newer than binary version %s\n", rawConfig.Version, viper.GetString("binary_version"))
119119
}
120120

pkg/version.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)