Skip to content

Commit

Permalink
find docker machines
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield authored and hkalodner committed Sep 10, 2022
1 parent cea7694 commit d6a431c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,15 @@ func (w *WasmConfig) FindMachineDir() (string, bool) {
projectPath := filepath.Join(filepath.Join(projectDir, "target"), "machines")
places = append(places, projectPath)

// Check the working directory: ./machines
// Check the working directory: ./machines and ./target/machines
workDir, err := os.Getwd()
if err != nil {
panic(err)
}
workPath := filepath.Join(workDir, "machines")
places = append(places, workPath)
workPath1 := filepath.Join(workDir, "machines")
workPath2 := filepath.Join(filepath.Join(workDir, "target"), "machines")
places = append(places, workPath1)
places = append(places, workPath2)

// Check above the executable: <binary> => ../../machines
execfile, err := os.Executable()
Expand Down

0 comments on commit d6a431c

Please sign in to comment.