Skip to content

Commit 6c60238

Browse files
committed
clean up
1 parent 39e3a24 commit 6c60238

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

internal/devpkg/package_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ func (l *lockfile) LegacyNixpkgsPath(pkg string) string {
119119
)
120120
}
121121

122+
func (l *lockfile) Source(pkg string) string {
123+
return ""
124+
}
125+
122126
func (l *lockfile) Resolve(pkg string) (*lock.Package, error) {
123127
switch {
124128
case strings.Contains(pkg, "path:"):

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)