-
Notifications
You must be signed in to change notification settings - Fork 5
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
updateHTMLVersion.js fails after reverting version in package.json #172
Comments
Here's an example... Publish natural-selection 1.0.0-dev.41:
Uh, oh. Something went wrong. Log into bayes, delete the 1.0.0-dev.41/ directory. Edit natural-selection/package.son and revert "version" to "1.0.0-dev.40", commit and push. Now attempt to deploy 1.0.0-dev.41 again:
Great. package.json has been committed with 1.0.0-dev.41, and then the deploy fails. |
@samreid suggested that I delete and re-clone natural-selection. I tried that, and identical results after deleting and re-cloning. I suspect that I could also revert the dev html file and then I might be able to redeploy. But there's nothing that indicates that reverting the html file is necessary, and I really don't want an extra step. |
Added a patch that should allow this, although having a gap in version numbers has been the supported way of doing things. |
Thanks, I'll check it out.
I've been reverting deploys like this for literally years, it's never been a problem until now. And the build process even tells you something like "Are you trying to do a redeploy? Then you need to delete {dirName} on bayes." |
Tested with example-sim 1.0.0-dev.17 and it's working nicely. Thanks, closing. |
Reopening, it appears I bugged this up (if you have ONLY staged changes and NO unstaged changes, it reports as "clean", so this isn't committing in the normal deployment case). |
In slack, @jonathanolson commented that this would not block dev versions. |
Should be fixed above, forgot an await :/ |
It used to be the case that, if you had a failed build, you could just revert the version number in package.json. Now there's a new task, updateHTMLVersion.js, that does "Bumping dev HTML with new version". And if I revert version in package.json, my next build fails on that task.
This behavior is most inconvenient. I have occasional failures due to VPN hiccups, and I don't enjoy having unexplained gaps in my version numbering on phet-dev.colorado.edu.
@jonathanolson added updateHTMLVersion.js on 4/13/2020. Must updateHTMLVersion.js fail in this situation? Can't it just take whatever is in package.json and stick it into the dev HTML?
The text was updated successfully, but these errors were encountered: