Skip to content

Commit b98a852

Browse files
authored
[easy][lock-tidy] Don't tidy flakes (#2162)
## Summary TSIA ## How was it tested?
1 parent 65d27cf commit b98a852

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/devbox/packages.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ func (d *Devbox) moveAllowInsecureFromLockfile(writer io.Writer, lockfile *lock.
649649
func (d *Devbox) FixMissingStorePaths(ctx context.Context) error {
650650
packages := d.InstallablePackages()
651651
for _, pkg := range packages {
652-
if pkg.IsRunX() {
652+
if !pkg.IsDevboxPackage || pkg.IsRunX() {
653653
continue
654654
}
655655
existingStorePaths, err := pkg.GetResolvedStorePaths()

internal/devpkg/package.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ func newPackage(raw string, isInstallable func() bool, locker lock.Locker) *Pack
145145
// assume a Devbox package.
146146
parsed, err := flake.ParseInstallable(raw)
147147
if err != nil || pkgtype.IsAmbiguous(raw, parsed) {
148+
// TODO: This sets runx packages as devbox packages. Not sure if that's what we want.
148149
pkg.IsDevboxPackage = true
149150
pkg.resolve = sync.OnceValue(func() error { return resolve(pkg) })
150151
return pkg

0 commit comments

Comments
 (0)