neighbour-hoods / social_sensemaker

integration of `rep_lang` and Holochain
Other
25 stars 2 forks source link

fix naersk builds #19

Closed mhuesch closed 2 years ago

mhuesch commented 2 years ago

we have an issue with naersk and the [patch.crates-io] added in #13 to fix breakage upstream in Holochain.

it seems the patch thingy confuses naersk, resulting in a network error (?? wat ??):

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/rhdr8dgzfk62fsc0cgyflw5z72a2sarw-dummy-src
source root is dummy-src
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
[naersk] cargo_version (read): 1.55.0 (32da73ab1 2021-08-23)
[naersk] cargo_message_format (set): json-diagnostic-rendered-ansi
[naersk] cargo_release: --release
[naersk] cargo_options: 
[naersk] cargo_build_options: $cargo_release -j "$NIX_BUILD_CORES" --message-format=$cargo_message_format --package=frontend-tui
[naersk] cargo_test_options: $cargo_release -j "$NIX_BUILD_CORES"
[naersk] RUST_TEST_THREADS: 16
[naersk] cargo_bins_jq_filter: .
[naersk] cargo_build_output_json (created): /build/tmp.i27MIAqmuW
[naersk] crate_sources: /nix/store/8ccdwc5hkcym65yn92nksk62wiy8909p-crates-io
[naersk] RUSTFLAGS: 
[naersk] CARGO_BUILD_RUSTFLAGS: 
[naersk] CARGO_BUILD_RUSTFLAGS (updated): --remap-path-prefix /nix/store/8ccdwc5hkcym65yn92nksk62wiy8909p-crates-io=/sources
@nix { "action": "setPhase", "phase": "buildPhase" }
building
cargo build $cargo_release -j "$NIX_BUILD_CORES" --message-format=$cargo_message_format --package=frontend-tui
    Updating git repository `https://github.com/holochain/holochain-wasmer.git`
warning: spurious network error (2 tries remaining): failed to resolve address for github.com: Name or service not known; class=Net (12)
warning: spurious network error (1 tries remaining): failed to resolve address for github.com: Name or service not known; class=Net (12)
error: failed to resolve patches for `https://github.com/rust-lang/crates.io-index`

Caused by:
  failed to load source for dependency `holochain_wasmer_common`

Caused by:
  Unable to update https://github.com/holochain/holochain-wasmer.git?branch=debug/v0.0.73-wasmer-build-error#51210d04

Caused by:
  failed to clone into: /build/dummy-src/.cargo-home/git/db/holochain-wasmer-dcc212de26b4a512

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  failed to resolve address for github.com: Name or service not known; class=Net (12)
[naersk] cargo returned with exit code 101, exiting
mhuesch commented 2 years ago

this was probably resolved in e2ed57dfe96380ca4d15c34f1a54705811039b84 when I removed the [path.crates-io] stuff.

this should be fixed by #32.