refactor: fixes install.sh lint errors and remove blobules publishing code#554
refactor: fixes install.sh lint errors and remove blobules publishing code#554basvandijk wants to merge 1 commit intomasterfrom
Conversation
07df6fe to
c797b98
Compare
| read_flags() { | ||
| # Set values from command line. | ||
| # shellcheck disable=SC2199 | ||
| # https://github.com/koalaman/shellcheck/wiki/SC2199 |
There was a problem hiding this comment.
@knl do I understand correctly and is the above URL saying I should rewrite the below while loop into a for loop like:
for ARG in "$@"; do?
There was a problem hiding this comment.
Yes. Written this way implies there will be only a single iteration of while.
Now that we publish directly to the https://download.dfinity.systems CDN we don't need to publish to blobules anymore. So this commit removes and cleans up any code related to that. This commit also refactors the `install.sh` script generation and makes sure `shellcheck` and `shfmt` are correctly applied to the script.
c797b98 to
cdd3fc7
Compare
|
This should be 3 PRs from what I'm reading right now... I really don't like 5 lines of change description ("remove blobules publishing code") that hides ~300 lines. I'll rework the title. Also if this PR is ready to review please stop force pushing. It makes it very hard to follow what happened since the last comments. |
| , releaseVersion ? "latest" | ||
|
|
||
| # TODO: Remove isMaster once switched to new CD system (https://dfinity.atlassian.net/browse/INF-1149) | ||
| , isMaster ? true |
There was a problem hiding this comment.
note: we may re-introduce isMaster in the future for longer-running tests
There was a problem hiding this comment.
I know, but let's add it back when we need it again. That way we'll only add it where we need it. Now it's passed all over the place.
| @@ -11,10 +11,5 @@ let | |||
| ci = import ./ci.nix { inherit src releaseVersion; }; | |||
| in | |||
| if !doRelease then {} else { | |||
There was a problem hiding this comment.
are theses release.nix and doRelease things still used?
|
Good points about the PR size. I'll split it up. |
|
OK I've split this up into the following stacked PRs:
|
|
Thanks! |
## Changelog for advisory-db: Branch: master Commits: [rustsec/advisory-db@fa47ec0c...8e1ad08e](rustsec/advisory-db@fa47ec0...8e1ad08) * [`7feb037b`](rustsec/advisory-db@7feb037) RUSTSEC-2020-0017.md (use-after-free in internment) is fixed ([RustSec/advisory-db#554](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/554)) * [`a3efac59`](rustsec/advisory-db@a3efac5) Add "Publish Web" GitHub Action ([RustSec/advisory-db#557](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/557)) * [`50451dd5`](rustsec/advisory-db@50451dd) Publish Web: fix rustsec-admin install ([RustSec/advisory-db#558](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/558)) * [`8e1ad08e`](rustsec/advisory-db@8e1ad08) Publish Web: fix YAML indenting ([RustSec/advisory-db#559](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/559))
## Changelog for advisory-db: Branch: master Commits: [rustsec/advisory-db@fa47ec0c...8e1ad08e](rustsec/advisory-db@fa47ec0...8e1ad08) * [`7feb037b`](rustsec/advisory-db@7feb037) RUSTSEC-2020-0017.md (use-after-free in internment) is fixed ([RustSec/advisory-db#554](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/554)) * [`a3efac59`](rustsec/advisory-db@a3efac5) Add "Publish Web" GitHub Action ([RustSec/advisory-db#557](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/557)) * [`50451dd5`](rustsec/advisory-db@50451dd) Publish Web: fix rustsec-admin install ([RustSec/advisory-db#558](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/558)) * [`8e1ad08e`](rustsec/advisory-db@8e1ad08) Publish Web: fix YAML indenting ([RustSec/advisory-db#559](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/559))
This commit contains 3 tasks:
shellcheckandshfmtare correctly applied to the script.