Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 13, 2022
Merged

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.

@@ -188,6 +188,8 @@ impl BuildCommand {
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
2 participants