Skip to content

Commit b7368d4

Browse files
committed
fix: Resolve version constant conflict in installer
- Changed VERSION to version in installer/install.go - Fixes build conflicts between main and installer packages - All tests now pass on all platforms
1 parent 32712dc commit b7368d4

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

installer/install.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package main
22

33
import (
4-
"fmt"
5-
"os"
6-
"os/exec"
7-
"path/filepath"
8-
"runtime"
9-
"strings"
4+
"fmt"
5+
"os"
6+
"os/exec"
7+
"path/filepath"
8+
"runtime"
9+
"strings"
1010
)
1111

12-
const VERSION = "2.2.0"
12+
const version = "2.2.1"
1313

1414
var (
1515
binaryName = "secscan"
@@ -23,7 +23,7 @@ var (
2323

2424
func main() {
2525
fmt.Println()
26-
fmt.Println("SecScan v" + VERSION + " - Universal Installation Script")
26+
fmt.Println("SecScan v" + version + " - Universal Installation Script")
2727
fmt.Println("=================================================")
2828
fmt.Println()
2929
fmt.Printf("Platform: %s/%s\n", runtime.GOOS, runtime.GOARCH)
@@ -94,7 +94,7 @@ func buildBinary() (string, error) {
9494
outputPath := filepath.Join(buildDir, binaryFile)
9595

9696
// Build command
97-
ldflags := fmt.Sprintf("-X main.Version=%s -s -w", VERSION)
97+
ldflags := fmt.Sprintf("-X main.Version=%s -s -w", version)
9898
cmd := exec.Command("go", "build", "-ldflags", ldflags, "-o", outputPath, "main.go")
9999
cmd.Stdout = os.Stdout
100100
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)