Skip to content

Commit

Permalink
fix: fallback mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
boukeversteegh committed Mar 21, 2022
1 parent 741328a commit 23afc0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dockerized.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ func dockerComposeRunAdHocService(service types.ServiceConfig, runOptions api.Ru
Services: []types.ServiceConfig{
service,
},
WorkingDir: getDockerizedRoot(),
}, runOptions, []types.ServiceVolumeConfig{})
}

Expand Down Expand Up @@ -360,10 +361,10 @@ func getBackend() (*api.ServiceProxy, error) {

func dockerComposeBuild(dockerComposeFilePath string, buildOptions api.BuildOptions) error {
project, err := getProject(dockerComposeFilePath)
err = os.Chdir(project.WorkingDir)
if err != nil {
return err
}
err = os.Chdir(project.WorkingDir)
if err != nil {
return err
}
Expand Down

0 comments on commit 23afc0b

Please sign in to comment.