We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b00e2b0 commit 891e8deCopy full SHA for 891e8de
internal/impl/update.go
@@ -7,6 +7,7 @@ import (
7
"context"
8
"fmt"
9
10
+ "go.jetpack.io/devbox/internal/devpkg"
11
"go.jetpack.io/devbox/internal/nix"
12
"go.jetpack.io/devbox/internal/searcher"
13
"go.jetpack.io/devbox/internal/ux"
@@ -40,6 +41,10 @@ func (d *Devbox) Update(ctx context.Context, pkgs ...string) error {
40
41
}
42
43
for _, pkg := range pendingPackagesToUpdate {
44
+ if _, _, isVersioned := devpkg.ParseVersionedPackage(pkg.Raw); !isVersioned {
45
+ fmt.Fprintf(d.writer, "Skipping %s because it is not a versioned package\n", pkg)
46
+ continue
47
+ }
48
existing := d.lockfile.Packages[pkg.Raw]
49
newEntry, err := searcher.Client().Resolve(pkg.Raw)
50
if err != nil {
0 commit comments