Skip to content

Commit 975356d

Browse files
committed
Updated the installation instructions to improve the upgrade scripts
1 parent 45370ec commit 975356d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/INSTALLATION.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -119,24 +119,27 @@ ExercismHttpClient
119119

120120
## How to Upgrade Pharo Exercism
121121

122-
From time to time we may need you to update the libraries in your Pharo Exercism image. Before doing an update, it is best to ensure you have submitted any in-progress exercises, then saved your Pharo image, and finally backed up your Pharo.image, and Pharo.changes files. Once you have a safe backup, follow the Playground steps (#4), of the Windows Installation which will reload the latest version of the libraries. If you hit any conflict errors you may need to modify the load script as follows:
122+
From time to time we may need you to update the libraries in your Pharo Exercism image. Before doing an update, it is best to ensure you have submitted any in-progress exercises, then saved your Pharo image, and finally backed up your Pharo.image, and Pharo.changes files. Once you have a safe backup, evaluate this code in a Playground:
123123

124124
```smalltalk
125+
126+
'./pharo-local/iceberg/exercism' asFileReference deleteAll.
127+
128+
IceRepository reset.
129+
125130
Metacello new
126131
baseline: 'Exercism';
127132
repository: 'github://exercism/pharo-smalltalk/releases/latest';
128133
onConflict: [ :ex | ex allow ];
129134
load.
130135
```
131136

132-
If you find that you need to upgrade (or downgrade) to a specific version you can modify this slightly to specify a particular version number as follows:
137+
If you find that you need to upgrade (or downgrade) to a specific version you can modify this slightly to specify a particular version number by changing the respository path as follows:
133138

134139
```smalltalk
135-
Metacello new
136-
baseline: 'Exercism';
140+
...
137141
repository: 'github://exercism/pharo-smalltalk:<version-tag>';
138-
onConflict: [ :ex | ex allow ];
139-
load.
142+
...
140143
```
141144

142145
Where `<versison-tag>` would be something like: `v0.2.3`

0 commit comments

Comments
 (0)