fix: persist original file path when using bases (#672)

* fix: persist original file path when using bases

Prior to this change, the resulting lock file was called `<bases[0]>.lock`,
instead of `<filename>.lock`.

This change ensures the final, merged state has the correct `.FilePath`.

* test: Assert proper FilePath in layered HelmState
This commit is contained in:
Eric Bailey
2019-06-11 14:01:27 +09:00
committed by KUOKA Yusuke
parent 34fbfb4fd0
commit 72425aebfc
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -148,6 +148,8 @@ func (c *StateCreator) ParseAndLoad(content []byte, baseDir, file string, envNam
return nil, err
}
state.FilePath = file
return state, nil
}