As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Unverified Commit 89d6b5ed authored by Ash McKenzie's avatar Ash McKenzie
Browse files

Add rootDir validation

parent b69260a1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -52,6 +52,11 @@ func main() {
os.Exit(1)
}
if _, err := os.Stat(rootDir); os.IsNotExist(err) {
fmt.Fprintf(readWriter.ErrOut, "Root directory %q does not exist, exiting\n", rootDir)
os.Exit(1)
}
// Fall back to Ruby in case of problems reading the config, but issue a
// warning as this isn't something we can sustain indefinitely
config, err := config.NewFromDir(rootDir)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment