Skip to content

Commit 50b7687

Browse files
committed
clean up
1 parent 39e3a24 commit 50b7687

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

internal/lock/lockfile.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,6 @@ func (l *File) ForceResolve(pkg string) (*Package, error) {
118118
return l.Resolve(pkg)
119119
}
120120

121-
func (l *File) ResolveToCurrentNixpkgCommitHash(pkg string) error {
122-
name, version, found := strings.Cut(pkg, "@")
123-
if found && version != "latest" {
124-
return errors.New(
125-
"only allowed version is @latest. Otherwise we can't guarantee the " +
126-
"version will resolve")
127-
}
128-
l.Packages[pkg] = &Package{
129-
Resolved: l.LegacyNixpkgsPath(name),
130-
Source: NixpkgSource,
131-
}
132-
return nil
133-
}
134-
135121
func (l *File) Save() error {
136122
return cuecfg.WriteFile(lockFilePath(l.devboxProject), l)
137123
}

0 commit comments

Comments
 (0)