Skip to content

Offline flag#356

Merged
ascjones merged 6 commits intomasterfrom
offline-flag
Nov 8, 2021
Merged

Offline flag#356
ascjones merged 6 commits intomasterfrom
offline-flag

Conversation

@achimcc
Copy link
Contributor

@achimcc achimcc commented Nov 8, 2021

This PR adds a --offline flag which can be used to build contracts without network acces with cargo contract build --offline.

The motivation for providing this extra flag is to be able to compile Smart contracts in ink! Playground within a safe docker environment without direct network access.

Ussing the --offline flag for cargo contract build, both, cargo build and also the generation of cargo contract metadata become possible without network connection, using cached dependencies only.

Copy link
Collaborator

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

@ascjones ascjones merged commit 90813a5 into master Nov 8, 2021
@ascjones ascjones deleted the offline-flag branch November 8, 2021 14:08
@ascjones ascjones mentioned this pull request Jun 5, 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.

2 participants