Skip to content

Commit

Permalink
Try enabling the import in variant export goed binary
Browse files Browse the repository at this point in the history
This should allow loading local/remote .variant files with `import = "path/to/dir"`, even from a compiled binary.
  • Loading branch information
mumoshu committed Aug 6, 2020
1 parent 73ac45d commit 04d6cb9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/app/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ func newApp(app *App, cc *HCL2Config, importBaseDir string, enableImports bool)
jobByName[j.Name] = j

if j.Import != nil {
if !enableImports {
return nil, fmt.Errorf("[bug] Imports are disable in the embedded mode")
}

var d string

if strings.Contains(*j.Import, ":") {
Expand Down

0 comments on commit 04d6cb9

Please sign in to comment.