Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions easybuild/easyblocks/generic/cargo.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def set_cargo_vars(self):
env.setvar('RUST_LOG', 'DEBUG')
env.setvar('RUST_BACKTRACE', '1')

# Use environment variable since it would also be passed along to builds triggered via python packages
env.setvar('CARGO_NET_OFFLINE', 'true')

@property
def crates(self):
"""Return the crates as defined in the EasyConfig"""
Expand Down Expand Up @@ -410,9 +413,6 @@ def _setup_offline_config(self, git_sources):
append=True
)

# Use environment variable since it would also be passed along to builds triggered via python packages
env.setvar('CARGO_NET_OFFLINE', 'true')

def _get_crate_git_repo_branch(self, crate_name):
"""
Find the dependency definition for given crate in all Cargo.toml files of sources
Expand Down