-
Notifications
You must be signed in to change notification settings - Fork 195
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
[merged] deploy: make sure commits are on the current branch #495
Conversation
A funky behaviour of `rpm-ostree deploy` was that specifying a csum directly allowed you to jump to any commit, regardless of whether that commit exists on the current branch or not. We tighten that up here so that we check that the checksum does exist on the current branch. The previous behaviour can be useful of course, but we might want to change how users access it so that we don't get inconsistencies such as rpm-ostree status saying that we're sitting on a specific branch with a specific commit which doesn't actually belong to that branch.
It feels a bit unfortunate to me to walk the whole ancestry if e.g. the user typos a commit ID. I guess I just feel that while this is conceptually an issue, we have a lot more important issues 😄 If we were looking at this problem, I'd say we should do this first: "One thing that would certainly help here is to show the fact that "deploy" was used in the status." But...I guess on balance I'm OK merging this as is too. Leaving open for a reply, but I can do an |
That's also an issue with version lookups though, right?
Heh, definitely don't disagree here :). This is more of a UI polishing item than a necessity. It just struck me as odd to have this asymmetry between versions and checksums.
Hmm, I think that's only worth it if we implement the second part of what you said re. making It's not that |
Closes: #495 Approved by: cgwalters
Re changing the ref...yeah it's messy. We could try to redesign it at some point. |
☀️ Test successful - status-atomicjenkins |
A funky behaviour of
rpm-ostree deploy
was that specifying a csumdirectly allowed you to jump to any commit, regardless of whether that
commit exists on the current branch or not. We tighten that up here so
that we check that the checksum does exist on the current branch.
The previous behaviour can be useful of course, but we might want to
change how users access it so that we don't get inconsistencies such as
rpm-ostree status saying that we're sitting on a specific branch with a
specific commit which doesn't actually belong to that branch.
This is split out from #465.