fix(cmd/joj3): set runID to env var
All checks were successful
submodules sync / sync (push) Successful in 44s
build / build (push) Successful in 2m23s
build / trigger-build-image (push) Successful in 13s

This commit is contained in:
张泊明518370910136 2025-07-02 12:50:24 -04:00
parent 1dd7f7161b
commit 386b1c0fd6
GPG Key ID: D47306D7062CDA9D

2
cmd/joj3/env/env.go vendored
View File

@ -39,6 +39,7 @@ func generateRunID() string {
func init() { func init() {
runID = generateRunID() runID = generateRunID()
SetRunID(runID)
} }
func GetRunID() string { return runID } func GetRunID() string { return runID }
@ -48,6 +49,7 @@ func GetCommitMsg() string { return os.Getenv(CommitMsg) }
func GetForceQuitStageName() string { return os.Getenv(ForceQuitStageName) } func GetForceQuitStageName() string { return os.Getenv(ForceQuitStageName) }
func GetOutputPath() string { return os.Getenv(OutputPath) } func GetOutputPath() string { return os.Getenv(OutputPath) }
func SetRunID(val string) { os.Setenv(RunID, val) }
func SetConfName(val string) { os.Setenv(ConfName, val) } func SetConfName(val string) { os.Setenv(ConfName, val) }
func SetGroups(val string) { os.Setenv(Groups, val) } func SetGroups(val string) { os.Setenv(Groups, val) }
func SetCommitMsg(val string) { os.Setenv(CommitMsg, val) } func SetCommitMsg(val string) { os.Setenv(CommitMsg, val) }