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

Update Fiji more nicely #579

Merged
merged 5 commits into from
Apr 18, 2024
Merged

Update Fiji more nicely #579

merged 5 commits into from
Apr 18, 2024

Conversation

ctrueden
Copy link
Member

Rather than using update-force-pristine, which clobbers any previously populated new version of sciview in favor of the older currently-on-the-sciview-update-site files, let's use the regular update directive, which updates new core libraries, but does not overwrite "Locally modified" files with their older counterparts.

And while at it, let's improve a few other things about the fiji* tasks.

The fijiUpdate task was using update-force-pristine which forcibly
resets all the JAR versions to those currently on the sciview update
site. So, if you do a populate, and then change something in sciview,
and then another populate... the second populate will cause many MB
worth of stuff to be redownloaded and overwrite your previous testing
version... only to then copy in a new testing version again. :face_palm:

So this commit switches from update-force-pristine to a normal update,
which will decline to overwrite the "locally modified" JARs.
The goal is to make the populate/test/edit loop less slow and wasteful.

This change could potentially result in a not-clean Fiji state from
which we then attempt to upload if, for example, you populate, then
remove a dependency, then populate again. In such a situation, the
Fiji.app would still have that old dependency as a "local only" file,
and then fijiUpload would subsequently upload it to the update site.
@skalarproduktraum skalarproduktraum merged commit 89167ef into main Apr 18, 2024
4 checks passed
@skalarproduktraum skalarproduktraum deleted the fiji-update-nicely branch April 18, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants