Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Implement config v0 -> v1 migration. #1653

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

duckinator
Copy link
Contributor

@duckinator duckinator commented Dec 18, 2024

Required functionality for this PR:

  1. make dist migrate move v0 to v1
    • Have do_migrate_from_v0() actually copy workspace members to the new configuration.
  2. make dist init use v1
  3. make everything but dist init load v1
  4. make sure dist plan (and other commands) gives an actionable error for v0 configs

Current state:

image

@duckinator duckinator force-pushed the dist-migrate-v1 branch 3 times, most recently from ebcaa00 to ce26547 Compare December 20, 2024 16:42
A condition like the following was intended to be inverted:

    A == B && C == D

The inverse of this would be:

    A != B || C != D

However, instead, what we had was this partially-inverted logic:

    A != B && C != D

In practice, because of the specific things we were checking, this meant
instead of *never* deleting dist-workspace.toml, we were *always*
deleting it.
@duckinator
Copy link
Contributor Author

duckinator commented Dec 20, 2024

This is currently based off #1661. When that gets merged, I'll rebase off main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant