Documentation ¶
Overview ¶
Package buildutils provides functions used when writing build automation.
Index ¶
- Variables
- func CDGitRepoRoot() error
- func FindFileUpwards(ctx context.Context, filename string) (string, error)
- func GetFileFromURL(url, outputFilename string) error
- func GitRepoName() (string, error)
- func GitRepoRoot() (string, error)
- func GoModDir() (string, error)
- func Touch(filename string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
func CDGitRepoRoot ¶
func CDGitRepoRoot() error
CDGitRepoRoot - Chdir to the Git repository root directory
func FindFileUpwards ¶ added in v0.3.0
FindFileUpwards - traverses the file system upwards looking for a file Returns buildutils.ErrNotFound if the file is not found
func GetFileFromURL ¶
func GitRepoName ¶
GitRepoName - Gets the Git repository name by parsing the origin URL
func GitRepoRoot ¶
GitRepoRoot - Gets the Git repository root directory
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.