Skip to content

Conversation

mikeland73
Copy link
Contributor

Summary

Fixes/refactors:

  • If legacy package is global, show correct update message
  • If a legacy package is updated, don't try to update it again (which will show warning because it is not versioned)
  • Made ShowWarnings -> IgnoreWarnings because we ignore in the vast majority of cases. Fixed a few cases that were accidentally ignored.

How was it tested?

  • Modified global config to have "curl" pacakge.
  • Saw devbox global update and ran it.
  • Inspected config.

Repeated process for non-global as well.

@mikeland73 mikeland73 requested review from savil and mohsenari June 9, 2023 22:48
_, err := Open(&devopt.Opts{
Dir: baseDir,
Writer: os.Stdout,
ShowWarnings: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need ignoreWarnings: false for tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false is default

@mikeland73 mikeland73 merged commit e3283a4 into main Jun 9, 2023
@mikeland73 mikeland73 deleted the landau/update-fixes branch June 9, 2023 22:58
mikeland73 added a commit that referenced this pull request Jun 19, 2023
## Summary

We can't update flakes yet, so show error,  but continue.

fixes bug introduced in #1129

## How was it tested?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants