Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions go/cmd/bundler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func main() {
os.Exit(1)
}
}
if err := downloadCLILicense(version, outputPath); err != nil {
fmt.Fprintf(os.Stderr, "Error: failed to download CLI license: %v\n", err)
os.Exit(1)
}

// Generate the Go file with embed directive
if err := generateGoFile(
Expand Down Expand Up @@ -321,9 +325,6 @@ func buildBundle(info platformInfo, cliVersion, outputPath, goos string) (bundle
if err != nil {
return bundleArtifacts{}, fmt.Errorf("failed to hash existing output: %w", err)
}
if err := downloadCLILicense(cliVersion, outputPath); err != nil {
return bundleArtifacts{}, fmt.Errorf("failed to download CLI license: %w", err)
}
runtimeHash, err := sha256FileFromCompressed(runtimeArtifactPath)
if err != nil {
return bundleArtifacts{}, fmt.Errorf("failed to hash existing runtime.node: %w", err)
Expand Down Expand Up @@ -364,9 +365,6 @@ func buildBundle(info platformInfo, cliVersion, outputPath, goos string) (bundle
if err := compressZstdFile(binaryPath, outputPath); err != nil {
return bundleArtifacts{}, fmt.Errorf("failed to write output binary: %w", err)
}
if err := downloadCLILicense(cliVersion, outputPath); err != nil {
return bundleArtifacts{}, fmt.Errorf("failed to download CLI license: %w", err)
}

rawLibPath := filepath.Join(tempDir, "runtime.node")
if err := extractFileFromTarball(
Expand Down
Loading