Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

chore: Prevent creating a release which includes uncommitted changes #6

Closed
wants to merge 3 commits into from

Conversation

TomAFrench
Copy link
Member

I noticed that the 0.1.0 version of nargo doesn't correspond to the commit from which it was built (running nargo --version returns a git commit suffixed with modified). This PR adds a quick check so that if the output of nargo --version includes this suffix then the release is halted.

I think that the issue with 0.1.0 is due to this release being made prior to build-nargo existing and so this check shouldn't trigger here however I think we should explicitly check to ensure that the builds we publish correspond to the commits we're saying they're from.

@phated
Copy link
Contributor

phated commented Feb 9, 2023

I rebuilt 0.1.0 when we tagged it before release-please. I think something else might be going on?

@TomAFrench
Copy link
Member Author

I'm not sure on the circumstances around the 0.1.0 release but if you download it and run nargo --version then we can see that it's not running the code it should.

@phated
Copy link
Contributor

phated commented Feb 9, 2023

But why? if we don't know why this happens, then how is a spurious error going to help us? 🤔 It could be a cargo lock thing? It could be something else? Do we need to build in cargo frozen mode?

@phated
Copy link
Contributor

phated commented Feb 9, 2023

The action is pretty simple, in that it just checks out the tag and runs one command. We should be able to track it down (and then hopefully fix the 0.1.0 binaries).

@TomAFrench
Copy link
Member Author

TomAFrench commented Feb 9, 2023

Looks like it's the hack which was removed in #3. We were injecting in a new dependency which causes this issue.

@phated
Copy link
Contributor

phated commented Feb 9, 2023

Looks like it's the hack which was removed in #3. We were injecting in a new dependency which causes this issue.

🎉 Sweet, that makes sense!

@TomAFrench
Copy link
Member Author

That said, on second thoughts this check should likely be moved to be one of the uvu tests rather than being run in GH actions directly.

@TomAFrench
Copy link
Member Author

closing in favour of #8

@TomAFrench TomAFrench closed this Feb 20, 2023
@TomAFrench TomAFrench deleted the reject-modified-builds branch March 25, 2023 16:39
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.

2 participants