Skip to content

Commit fc64888

Browse files
committed
configs: if cwd could not be determined try to open 'arduino-cli.yaml' as last resource
1 parent ebb0de9 commit fc64888

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commands/root/root.go

+3
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ func initConfigs() {
153153
// Read configuration from parent folders (project config)
154154
if pwd, err := paths.Getwd(); err != nil {
155155
logrus.WithError(err).Warn("Did not manage to find current path")
156+
if path := paths.New("arduino-cli.yaml"); path.Exist() {
157+
readConfigFrom(path)
158+
}
156159
} else {
157160
commands.Config.Navigate("/", pwd.String())
158161
}

0 commit comments

Comments
 (0)