2022-04-14 01:27:39 +00:00
|
|
|
package cli
|
|
|
|
|
|
|
|
type LockFile map[string]LockedMod
|
|
|
|
|
|
|
|
type LockedMod struct {
|
|
|
|
Version string `json:"version"`
|
2022-05-02 20:07:15 +00:00
|
|
|
Hash string `json:"hash"`
|
|
|
|
Link string `json:"link"`
|
2022-04-14 01:27:39 +00:00
|
|
|
Dependencies map[string]string `json:"dependencies"`
|
|
|
|
}
|
2022-05-02 20:07:15 +00:00
|
|
|
|
|
|
|
func (l LockFile) Clone() LockFile {
|
|
|
|
lockFile := make(LockFile)
|
|
|
|
for k, v := range l {
|
|
|
|
lockFile[k] = v
|
|
|
|
}
|
|
|
|
return lockFile
|
|
|
|
}
|