Skip to content

Comments

refactor: move rust agent to its own repo#876

Merged
mergify[bot] merged 31 commits intomasterfrom
hansl/move-ic-agent-to-own-repo
Aug 10, 2020
Merged

refactor: move rust agent to its own repo#876
mergify[bot] merged 31 commits intomasterfrom
hansl/move-ic-agent-to-own-repo

Conversation

@hansl
Copy link
Contributor

@hansl hansl commented Jul 27, 2020

cf. #858

@hansl hansl requested a review from nomeata July 29, 2020 18:24
@hansl hansl requested a review from p-shahi August 5, 2020 23:10
hansl and others added 15 commits August 5, 2020 16:22
The following used to work:

```
nix-repl> builtins.fetchGit { url = "ssh://git@github.com/dfinity-lab/agent-rust"; ref = "v0.6.3"; }
{ outPath = "/nix/store/rrlmgrf9z0nm9jzbimbsl6rpj96ij9yn-source"; rev = "5b2fab20e1902f8709d1b09fcb6f5ee9feb0084e"; revCount = 42; shortRev = "5b2fab2"; }
```

However, due to a Nix upgrade on Hydra this doesn't seem to work
anymore:

```
nix-repl> builtins.fetchGit { url = "ssh://git@github.com/dfinity-lab/agent-rust.git"; ref = "v0.6.3"; }
fetching Git repository 'ssh://git@github.com/dfinity-lab/agent-rust.git'fatal: couldn't find remote ref refs/heads/v0.6.3
error: --- Error ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix
program 'git' failed with exit code 128
```

I'm not sure this is intended behaviour but it could be that Nix wants
to have a revision in order to guarantee that the source doesn't
change:

```
nix-repl> builtins.fetchGit { url = "ssh://git@github.com/dfinity-lab/agent-rust"; rev = "5b2fab20e1902f8709d1b09fcb6f5ee9feb0084e"; ref = "0.6"; }
{ lastModified = 1596813025; lastModifiedDate = "20200807151025"; narHash = "sha256-LJY3PJeTFaR3nn0/SAxbAOhogkcQS3JkHUiyOY14lWA="; outPath = "/nix/store/rrlmgrf9z0nm9jzbimbsl6rpj96ij9yn-source"; rev = "5b2fab20e1902f8709d1b09fcb6f5ee9feb0084e"; revCount = 42; shortRev = "5b2fab2"; submodules = false; }
```

Note that if the revision is not reachable from `master` it's also
required to specify a branch. Unfortunately this does currently raise
a warning in cargo:

```
$ cargo build
warning: /Users/bas/d/sdk/hansl/move-ic-agent-to-own-repo/src/ic_identity_manager/Cargo.toml: dependency (ic-agent) specification is ambiguous. Only one of `branch`, `tag` or `rev` is allowed. This will be considered an error in future versions
warning: /Users/bas/d/sdk/hansl/move-ic-agent-to-own-repo/src/dfx/Cargo.toml: dependency (ic-agent) specification is ambiguous. Only one of `branch`, `tag` or `rev` is allowed. This will be considered an error in future versions
```
@mergify mergify bot merged commit 11c3e05 into master Aug 10, 2020
@mergify mergify bot deleted the hansl/move-ic-agent-to-own-repo branch August 10, 2020 17:40
dfinity-bot added a commit that referenced this pull request Apr 20, 2021
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@60455ec8...5b3dcb83](rustsec/advisory-db@60455ec...5b3dcb8)

* [`5b3dcb83`](rustsec/advisory-db@5b3dcb8) Yank advisories for once-again maintained `dirs`/`directories` crates ([RustSec/advisory-db⁠#876](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/876))
mergify bot pushed a commit that referenced this pull request Apr 20, 2021
## Changelog for advisory-db:
Branch: master
Commits: [rustsec/advisory-db@60455ec8...5b3dcb83](rustsec/advisory-db@60455ec...5b3dcb8)

* [`5b3dcb83`](rustsec/advisory-db@5b3dcb8) Yank advisories for once-again maintained `dirs`/`directories` crates ([RustSec/advisory-db⁠#876](http://r.duckduckgo.com/l/?uddg=https://github.com/RustSec/advisory-db/issues/876))
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