@@ -47,28 +47,28 @@ func UpdateAndSaveStateHashFile(args UpdateStateHashFileArgs) error {
47
47
}
48
48
49
49
func isStateUpToDate (args UpdateStateHashFileArgs ) (bool , error ) {
50
- filesystemLock , err := readStateHashFile (args .ProjectDir )
50
+ filesystemStateHash , err := readStateHashFile (args .ProjectDir )
51
51
if err != nil {
52
52
return false , err
53
53
}
54
- newLock , err := getCurrentStateHash (args )
54
+ newStateHash , err := getCurrentStateHash (args )
55
55
if err != nil {
56
56
return false , err
57
57
}
58
58
59
- return * filesystemLock == * newLock , nil
59
+ return * filesystemStateHash == * newStateHash , nil
60
60
}
61
61
62
62
func readStateHashFile (projectDir string ) (* stateHashFile , error ) {
63
- lockFile := & stateHashFile {}
64
- err := cuecfg .ParseFile (stateHashFilePath (projectDir ), lockFile )
63
+ hashFile := & stateHashFile {}
64
+ err := cuecfg .ParseFile (stateHashFilePath (projectDir ), hashFile )
65
65
if errors .Is (err , fs .ErrNotExist ) {
66
- return lockFile , nil
66
+ return hashFile , nil
67
67
}
68
68
if err != nil {
69
69
return nil , err
70
70
}
71
- return lockFile , nil
71
+ return hashFile , nil
72
72
}
73
73
74
74
func getCurrentStateHash (args UpdateStateHashFileArgs ) (* stateHashFile , error ) {
@@ -100,7 +100,7 @@ func getCurrentStateHash(args UpdateStateHashFileArgs) (*stateHashFile, error) {
100
100
}
101
101
102
102
func stateHashFilePath (projectDir string ) string {
103
- return filepath .Join (projectDir , ".devbox" , "local.lock " )
103
+ return filepath .Join (projectDir , ".devbox" , "state.json " )
104
104
}
105
105
106
106
func manifestHash (profileDir string ) (string , error ) {
0 commit comments