Skip to content

Backport: Check lock file diagnostics in mirror command#35355

Merged
jbardin merged 3 commits intov1.9from
backport-35322
Jun 18, 2024
Merged

Backport: Check lock file diagnostics in mirror command#35355
jbardin merged 3 commits intov1.9from
backport-35322

Conversation

@jbardin
Copy link
Copy Markdown
Member

@jbardin jbardin commented Jun 18, 2024

Backport of #35322


The lock file diagnostic were not being checked in the mirror command, so an incomplete or broken lock file might cause the cli to crash.

Add -lock-file flag to providers mirror command, so that a user can proceed to create a mirror with an incomplete lock file when running init is not an option.

jbardin added 3 commits June 18, 2024 13:15
The lock file diagnostic were not being checked in the mirror command,
so an incomplete or broken lock file might cause the cli to crash.
The providers mirror command was updated to inspect the lock file,
however that was not part of the original intent for the command, and
it's possible that the command needs to be run without a lock file.

Since we have been honoring the lock file for the past few releases,
let's keep that consistent and allow disabling the file with
`-lock-file=false`.
@jbardin jbardin merged commit 5c87135 into v1.9 Jun 18, 2024
@jbardin jbardin deleted the backport-35322 branch June 18, 2024 17:28
@github-actions
Copy link
Copy Markdown
Contributor

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant