File tree Expand file tree Collapse file tree 7 files changed +9
-223
lines changed Expand file tree Collapse file tree 7 files changed +9
-223
lines changed Original file line number Diff line number Diff line change 33
33
- target : armv7-unknown-linux-gnueabihf
34
34
# snap_arch: armhf
35
35
steps :
36
- - uses : actions/checkout@v2
36
+ - name : Clone repo
37
+ uses : actions/checkout@v2
37
38
with :
38
39
# v2 defaults to a shallow checkout, but we need at least to the previous tag
39
40
fetch-depth : 0
@@ -145,25 +146,6 @@ jobs:
145
146
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
146
147
AWS_DEFAULT_REGION : us-west-1
147
148
if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
148
- - name : Build a snapcraft configuration file
149
- run : |
150
- bash ci/snapcraft.bash
151
- if : matrix.snap_arch != ''
152
- env :
153
- DO_SNAP : 1
154
- SNAP_ARCH : ${{ matrix.snap_arch }}
155
- SNAP_EDGE : 1 # skip-stable
156
- - uses : snapcore/action-build@v1
157
- id : snapcraftbuild
158
- with :
159
- path : snapcraft
160
- if : matrix.snap_arch != ''
161
- - uses : snapcore/action-publish@v1
162
- with :
163
- store_login : ${{ secrets.SNAPCRAFT_TOKEN }}
164
- snap : ${{ steps.snapcraftbuild.outputs.snap }}
165
- release : edge # skip-pr skip-stable
166
- if : matrix.snap_arch != '' # skip-pr
167
149
- name : Clear the cargo caches
168
150
run : |
169
151
cargo install cargo-cache --no-default-features --features ci-autoclean
Original file line number Diff line number Diff line change 26
26
- target : armv7-unknown-linux-gnueabihf
27
27
# snap_arch: armhf
28
28
steps :
29
- - uses : actions/checkout@v2
29
+ - name : Clone repo
30
+ uses : actions/checkout@v2
30
31
with :
31
32
# v2 defaults to a shallow checkout, but we need at least to the previous tag
32
33
fetch-depth : 0
@@ -138,24 +139,6 @@ jobs:
138
139
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
139
140
AWS_DEFAULT_REGION : us-west-1
140
141
if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
141
- - name : Build a snapcraft configuration file
142
- run : |
143
- bash ci/snapcraft.bash
144
- if : matrix.snap_arch != ''
145
- env :
146
- DO_SNAP : 1
147
- SNAP_ARCH : ${{ matrix.snap_arch }}
148
- SNAP_EDGE : 1 # skip-stable
149
- - uses : snapcore/action-build@v1
150
- id : snapcraftbuild
151
- with :
152
- path : snapcraft
153
- if : matrix.snap_arch != ''
154
- - uses : snapcore/action-publish@v1
155
- with :
156
- store_login : ${{ secrets.SNAPCRAFT_TOKEN }}
157
- snap : ${{ steps.snapcraftbuild.outputs.snap }}
158
- if : matrix.snap_arch == 'not-for-prs' # skip-master skip-stable
159
142
- name : Clear the cargo caches
160
143
run : |
161
144
cargo install cargo-cache --no-default-features --features ci-autoclean
Original file line number Diff line number Diff line change 56
56
- target : s390x-unknown-linux-gnu # skip-pr skip-master
57
57
# snap_arch: s390x # skip-pr skip-master
58
58
steps :
59
- - uses : actions/checkout@v2
59
+ - name : Clone repo
60
+ uses : actions/checkout@v2
60
61
with :
61
62
# v2 defaults to a shallow checkout, but we need at least to the previous tag
62
63
fetch-depth : 0
@@ -168,24 +169,6 @@ jobs:
168
169
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
169
170
AWS_DEFAULT_REGION : us-west-1
170
171
if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
171
- - name : Build a snapcraft configuration file
172
- run : |
173
- bash ci/snapcraft.bash
174
- if : matrix.snap_arch != ''
175
- env :
176
- DO_SNAP : 1
177
- SNAP_ARCH : ${{ matrix.snap_arch }}
178
- - uses : snapcore/action-build@v1
179
- id : snapcraftbuild
180
- with :
181
- path : snapcraft
182
- if : matrix.snap_arch != ''
183
- - uses : snapcore/action-publish@v1
184
- with :
185
- store_login : ${{ secrets.SNAPCRAFT_TOKEN }}
186
- snap : ${{ steps.snapcraftbuild.outputs.snap }}
187
- release : beta # skip-pr skip-master
188
- if : matrix.snap_arch != '' # skip-pr
189
172
- name : Clear the cargo caches
190
173
run : |
191
174
cargo install cargo-cache --no-default-features --features ci-autoclean
Original file line number Diff line number Diff line change 64
64
- target : s390x-unknown-linux-gnu # skip-pr skip-master
65
65
# snap_arch: s390x # skip-pr skip-master
66
66
steps :
67
- - uses : actions/checkout@v2
67
+ - name : Clone repo
68
+ uses : actions/checkout@v2
68
69
with :
69
70
# v2 defaults to a shallow checkout, but we need at least to the previous tag
70
71
fetch-depth : 0
@@ -176,27 +177,6 @@ jobs:
176
177
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
177
178
AWS_DEFAULT_REGION : us-west-1
178
179
if : github.event_name == 'push' && github.ref == 'refs/heads/stable'
179
- - name : Build a snapcraft configuration file
180
- run : |
181
- bash ci/snapcraft.bash
182
- if : matrix.snap_arch != ''
183
- env :
184
- DO_SNAP : 1
185
- SNAP_ARCH : ${{ matrix.snap_arch }}
186
- SNAP_EDGE : 1 # skip-stable
187
- - uses : snapcore/action-build@v1
188
- id : snapcraftbuild
189
- with :
190
- path : snapcraft
191
- if : matrix.snap_arch != ''
192
- - uses : snapcore/action-publish@v1
193
- with :
194
- store_login : ${{ secrets.SNAPCRAFT_TOKEN }}
195
- snap : ${{ steps.snapcraftbuild.outputs.snap }}
196
- release : edge # skip-pr skip-stable
197
- release : beta # skip-pr skip-master
198
- if : matrix.snap_arch != '' # skip-pr
199
- if : matrix.snap_arch == 'not-for-prs' # skip-master skip-stable
200
180
- name : Clear the cargo caches
201
181
run : |
202
182
cargo install cargo-cache --no-default-features --features ci-autoclean
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ info: downloading self-updates
33
33
If your ` rustup ` was built with the [ no-self-update feature] ( https://github.com/rust-lang/rustup/blob/master/Cargo.toml#L25 ) , it can not update
34
34
itself. This is not the default, and only versions of ` rustup ` built with
35
35
` --no-default-features ` , or obtained from a third-party distributor who has
36
- disabled it (such as the Ubuntu snap store ).
36
+ disabled it (such as Nixos ).
37
37
38
38
Otherwise Rustup can update itself. It is possible to control Rustup's automatic
39
39
self update mechanism with the ` auto-self-update ` configuration variable. This
Original file line number Diff line number Diff line change @@ -292,23 +292,6 @@ pub(crate) fn self_update_permitted(explicit: bool) -> Result<SelfUpdatePermissi
292
292
Ok ( SelfUpdatePermission :: Permit )
293
293
} else {
294
294
// Detect if rustup is not meant to self-update
295
- match process ( ) . var ( "SNAP" ) {
296
- Ok ( _) => {
297
- // We're running under snappy so don't even bother
298
- // trying to self-update
299
- // TODO: Report this to the user?
300
- // TODO: Maybe ask snapd if there's an update and report
301
- // that to the user instead?
302
- debug ! ( "Skipping self-update because SNAP was detected" ) ;
303
- if explicit {
304
- return Ok ( SelfUpdatePermission :: HardFail ) ;
305
- } else {
306
- return Ok ( SelfUpdatePermission :: Skip ) ;
307
- }
308
- }
309
- Err ( env:: VarError :: NotPresent ) => { }
310
- Err ( e) => return Err ( e) . context ( "Could not interrogate SNAP environment variable" ) ,
311
- }
312
295
let current_exe = env:: current_exe ( ) ?;
313
296
let current_exe_dir = current_exe. parent ( ) . expect ( "Rustup isn't in a directory‽" ) ;
314
297
if let Err ( e) = tempfile:: Builder :: new ( )
You can’t perform that action at this time.
0 commit comments