Skip to content

Skip linting if running building in --offline mode - #737

Merged
HCastano merged 4 commits into
masterfrom
aj/offline
Sep 13, 2022
Merged

Skip linting if running building in --offline mode#737
HCastano merged 4 commits into
masterfrom
aj/offline

Conversation

@ascjones

Copy link
Copy Markdown
Collaborator

Fixes #732.

Skips the linting step if building with --offline. This is because cargo dylint requires network access to build the linting drivers.

false => Network::Online,
};

let skip_linting = self.skip_linting || matches!(network, Network::Offline);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd add a comment as to why we skip linting in this case

Comment thread crates/cargo-contract/src/cmd/build/mod.rs Outdated
@HCastano
HCastano merged commit 1f20371 into master Sep 13, 2022
@HCastano
HCastano deleted the aj/offline branch September 13, 2022 15:33
@ascjones ascjones mentioned this pull request Sep 21, 2022
@ascjones ascjones mentioned this pull request Feb 14, 2023
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.

The flag --offline is broken in newest cargo-contract version

2 participants