Help us shape the future of Go! Take the 2026 Go Developer Survey

runid

package
v1.50.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrGenerateRunId

func GetOrGenerateRunId(maybeRunId *string) (string, error)

GetOrGenerateRunId returns the runId if it is not nil, otherwise it reads the .run.id file and returns the value, or creates it with a new UUID, saves to file and returns the value.

func RemoveLocalRunId

func RemoveLocalRunId(runId *string) error

RemoveLocalRunId removes the .run.id file if it exists and the runId contains 'local' substring indicating local execution. In GHA we get run_id from TOML config, so we don't need to remove the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL