Skip to content

Commit afafbe3

Browse files
authored
[update] call createWrappers (#1093)
## Summary `devbox update` should ensure the wrappers point to the latest binaries of any updated packages. ## How was it tested? - take a devbox.json having [email protected] package (such as the devbox-repo!) - do `devbox shell` - confirm go version 1.20 via `go version` - manually set a package to [email protected] - do `devbox update` - run `go version` and see the updated version BEFORE: would continue to show `go 1.20` version AFTER: shows `go 1.19` version
1 parent 0e0dae3 commit afafbe3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/impl/update.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66

77
"go.jetpack.io/devbox/internal/lock"
8+
"go.jetpack.io/devbox/internal/wrapnix"
89
)
910

1011
func (d *Devbox) Update(ctx context.Context, pkgs ...string) error {
@@ -43,5 +44,9 @@ func (d *Devbox) Update(ctx context.Context, pkgs ...string) error {
4344
}
4445

4546
// TODO(landau): Improve output
46-
return d.ensurePackagesAreInstalled(ctx, ensure)
47+
if err := d.ensurePackagesAreInstalled(ctx, ensure); err != nil {
48+
return err
49+
}
50+
51+
return wrapnix.CreateWrappers(ctx, d)
4752
}

0 commit comments

Comments
 (0)