Skip to content

Comments

fix: build generates different IDs every time#598

Merged
mergify[bot] merged 2 commits intomasterfrom
hansl/build-canister-id-generation
Apr 27, 2020
Merged

fix: build generates different IDs every time#598
mergify[bot] merged 2 commits intomasterfrom
hansl/build-canister-id-generation

Conversation

@hansl
Copy link
Contributor

@hansl hansl commented Apr 27, 2020

There was a bug introduced during refactoring that made dfx build generate the same IDs. This PR fixes it.

@hansl hansl requested a review from a team as a code owner April 27, 2020 19:43
Copy link
Contributor

@lsgunnlsgunn lsgunnlsgunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit description seems misleading to me. Doesn't this make generating a different ID with each build false by default?

@hansl
Copy link
Contributor Author

hansl commented Apr 27, 2020

The other way around. There was a bug introduced (might be during my refactor of the build system) that two dfx build would have the same IDs for the same canisters. This fixes that bug. I'll clarify the PR description.

@hansl hansl changed the title fix: build now generates different IDs everytime fix: build generates different IDs every time Apr 27, 2020
Copy link
Contributor

@andrewwylde andrewwylde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify mergify bot merged commit 148286c into master Apr 27, 2020
@mergify mergify bot deleted the hansl/build-canister-id-generation branch April 27, 2020 22:32
dfinity-bot added a commit that referenced this pull request Jan 19, 2021
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@b08a98ac...89b9e106](rustsec/advisory-db@b08a98a...89b9e10)

* [`6ea698b8`](rustsec/advisory-db@6ea698b) lazy-init: Missing Send bound for Lazy (khuey/lazy-init[RustSec/advisory-db⁠#9](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/9))
* [`6703edaf`](rustsec/advisory-db@6703eda) apply review changes
* [`47d589b0`](rustsec/advisory-db@47d589b) Assigned RUSTSEC-2021-0004 to lazy-init
* [`efb79eff`](rustsec/advisory-db@efb79ef) report double drop issue in glsl-layout
* [`47061ba3`](rustsec/advisory-db@47061ba) Report 0025-im to RustSec
* [`4cf4c549`](rustsec/advisory-db@4cf4c54) Assigned RUSTSEC-2021-0005 to glsl-layout
* [`b2a7af1c`](rustsec/advisory-db@b2a7af1) Assigned RUSTSEC-2020-0096 to im
* [`1613b211`](rustsec/advisory-db@1613b21) Report 0063-xcb to RustSec
* [`ea867420`](rustsec/advisory-db@ea86742) Assigned RUSTSEC-2020-0097 to xcb
* [`d7de84ed`](rustsec/advisory-db@d7de84e) Add advisory for data race in rusb ([RustSec/advisory-db⁠#580](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/580))
* [`3fbe0648`](rustsec/advisory-db@3fbe064) Assigned RUSTSEC-2020-0098 to rusb ([RustSec/advisory-db⁠#581](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/581))
* [`c9886554`](rustsec/advisory-db@c988655) Add advisory for data race in aovec ([RustSec/advisory-db⁠#528](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/528))
* [`315e464c`](rustsec/advisory-db@315e464) Assigned RUSTSEC-2020-0099 to aovec ([RustSec/advisory-db⁠#596](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/596))
* [`97aa97b0`](rustsec/advisory-db@97aa97b) cache: exposes internally used raw pointer ([RustSec/advisory-db⁠#543](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/543))
* [`89b9e106`](rustsec/advisory-db@89b9e10) Assigned RUSTSEC-2021-0006 to cache ([RustSec/advisory-db⁠#598](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/598))
mergify bot pushed a commit that referenced this pull request Jan 19, 2021
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@b08a98ac...89b9e106](rustsec/advisory-db@b08a98a...89b9e10)

* [`6ea698b8`](rustsec/advisory-db@6ea698b) lazy-init: Missing Send bound for Lazy (khuey/lazy-init[RustSec/advisory-db⁠#9](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/9))
* [`6703edaf`](rustsec/advisory-db@6703eda) apply review changes
* [`47d589b0`](rustsec/advisory-db@47d589b) Assigned RUSTSEC-2021-0004 to lazy-init
* [`efb79eff`](rustsec/advisory-db@efb79ef) report double drop issue in glsl-layout
* [`47061ba3`](rustsec/advisory-db@47061ba) Report 0025-im to RustSec
* [`4cf4c549`](rustsec/advisory-db@4cf4c54) Assigned RUSTSEC-2021-0005 to glsl-layout
* [`b2a7af1c`](rustsec/advisory-db@b2a7af1) Assigned RUSTSEC-2020-0096 to im
* [`1613b211`](rustsec/advisory-db@1613b21) Report 0063-xcb to RustSec
* [`ea867420`](rustsec/advisory-db@ea86742) Assigned RUSTSEC-2020-0097 to xcb
* [`d7de84ed`](rustsec/advisory-db@d7de84e) Add advisory for data race in rusb ([RustSec/advisory-db⁠#580](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/580))
* [`3fbe0648`](rustsec/advisory-db@3fbe064) Assigned RUSTSEC-2020-0098 to rusb ([RustSec/advisory-db⁠#581](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/581))
* [`c9886554`](rustsec/advisory-db@c988655) Add advisory for data race in aovec ([RustSec/advisory-db⁠#528](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/528))
* [`315e464c`](rustsec/advisory-db@315e464) Assigned RUSTSEC-2020-0099 to aovec ([RustSec/advisory-db⁠#596](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/596))
* [`97aa97b0`](rustsec/advisory-db@97aa97b) cache: exposes internally used raw pointer ([RustSec/advisory-db⁠#543](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/543))
* [`89b9e106`](rustsec/advisory-db@89b9e10) Assigned RUSTSEC-2021-0006 to cache ([RustSec/advisory-db⁠#598](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/598))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants