-
Notifications
You must be signed in to change notification settings - Fork 29
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
Question: Updating a Squot repository via Metacello? #241
Comments
It has nothing to do with Squot, but with Metacello, indeed. In my opinion, it lacks a simple update or upgrade function... You can have a look at the self update function in the Git Browser though: selfUpdateFromMetacello
"Close all instances before updating to avoid any UI glitches"
self allInstancesDo: [:each | each changed: #close].
(Smalltalk at: #Metacello) new
baseline: 'Squot';
repository: 'github://hpi-swa/Squot:', self selfUpdateBranch, '/src';
get; load.
"UpdateWorkingCopy loadVersion: UpdateWorkingCopy baseVersion interactive: false."
SquitBrowser open If it does not work for your repo, please let me know. |
Thanks for the reply! I think my code above is equivalent to yours; I also added the #get but the new code still is not loaded. Might the line that is commented out be relevant, or is it very specific to Squot itself? |
The code that is commented out is only relevant to Squot itself -- or rather it isn't since it is commented out. :-) If the get; load combination does not work, then maybe even the self update of Squot is broken. :-( The Metacello user guide reads like you should use the following to update your project:
https://github.com/dalehenrich/metacello-work/blob/master/docs/MetacelloUserGuide.md The get updates the baseline (the dependencies might have changed), the load then updates the project according to the updated baseline. If it does not work, I suggest you open an issue there. |
Thanks, Jakob, I tried it again without success. I opened Metacello/metacello#513. |
Hi,
again not sure whether this is really a question about Squot but not Metacello, but I would appreciate your help in every case.
I set up a simple repository with Baseline and Squot and installed it into a fresh image using
However, when I push a new commit to the repo and execute the code above again in the fresh image, the package is not updated but the old code version remains. Even clearing my working copy or removing the whole package from the fresh image did not help with it.
What I am doing wrong, or might this even be a bug? How can I update and installed Squot repo using Metacello? Thanks in advance!
The text was updated successfully, but these errors were encountered: