Skip to content

Commit b0c653a

Browse files
committed
Added PZ_LAUNCHER_VERSION env variable to pass launcher version to pz
1 parent e9a0400 commit b0c653a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pz.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ import (
1818
"time"
1919
)
2020

21+
var (
22+
version = "dev"
23+
commit = "none"
24+
date = "unknown"
25+
builtBy = "unknown"
26+
)
27+
2128
func main() {
2229
if _, err := os.Stat("./.pz.yaml"); os.IsNotExist(err) {
2330
fmt.Printf("Missing \"./.pz.yaml\" file.\r\n")
@@ -93,6 +100,8 @@ func runDocker(dockerCli *command.DockerCli, dockerImage string, dockerEntrypoin
93100
"PZ_PWD=" + currentDir,
94101
"-e",
95102
fmt.Sprintf("PZ_PORT=%d", ipcPort),
103+
"-e",
104+
"PZ_LAUNCHER_VERSION=" + version,
96105
"--entrypoint=" + dockerEntrypoint,
97106
"-v",
98107
currentDir + ":/project",

0 commit comments

Comments
 (0)