Skip to content

Commit

Permalink
cli: fix broken console output (#891)
Browse files Browse the repository at this point in the history
* ci: add integration test for vz vm-type

* cli: fix broken output for package downloads

* cli: re-introduce progress bar

* ci: remove vz
  • Loading branch information
abiosoft authored Nov 19, 2023
1 parent a0f923d commit a3adebf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,3 @@ jobs:

- name: Teardown
run: colima delete -f

2 changes: 1 addition & 1 deletion environment/vm/lima/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func (l *limaVM) startDaemon(ctx context.Context, conf config.Config) (context.C

// add network processes to daemon
if isQEMU {
a.Stage("preparing network")
a.Add(func() error {
if conf.Network.Address {
a.Stage("preparing network")
ctx = context.WithValue(ctx, ctxKeyVmnet, true)
}
deps, root := l.daemon.Dependencies(ctx, conf)
Expand Down
2 changes: 1 addition & 1 deletion environment/vm/lima/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (l *limaVM) cacheDependencies(src deb.URISource, log *logrus.Entry, conf co
// TODO: extract this into re-usable progress bar for multi-downloads
for i, p := range debPackages {
// status feedback
log.Infof("downloading package %d of %d ...", i+1, len(debPackages))
logrus.Infof("downloading package %d of %d ...", i+1, len(debPackages))

// download
if err := l.host.RunInteractive(
Expand Down
5 changes: 2 additions & 3 deletions environment/vm/lima/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ func newConf(ctx context.Context, conf config.Config) (l Config, err error) {
// add user to docker group
// "sudo", "usermod", "-aG", "docker", user
l.Provision = append(l.Provision, Provision{
Mode: ProvisionModeDependency,
Script: "groupadd -f docker && usermod -aG docker $LIMA_CIDATA_USER",
SkipResolution: true,
Mode: ProvisionModeDependency,
Script: "groupadd -f docker && usermod -aG docker $LIMA_CIDATA_USER",
})

// set hostname
Expand Down

0 comments on commit a3adebf

Please sign in to comment.