Skip to content

Conversation

@ascjones
Copy link
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
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

@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

3 participants