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

Changed default value of clean flag to False #14

Merged
merged 1 commit into from
Oct 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions env.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ conda_create_rule = repository_rule(
doc = "Timeout in seconds for each execute action",
),
"clean": attr.bool(
default = True,
doc = "False if conda cache should not be cleaned",
default = False,
doc = "True if conda cache should be cleaned",
),
},
)
10 changes: 5 additions & 5 deletions example/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,26 @@ load("@rules_conda//:defs.bzl", "conda_create", "load_conda", "register_toolchai

# download and install conda
load_conda(
quiet = False, # print output
quiet = False, # use True to hide conda output
version = "4.10.3", # optional, defaults to 4.10.3
)

# create environment with python2
conda_create(
name = "py2_env",
timeout = 600, # each execute action can take up to 600 seconds
clean = True, # use False if you want to avoid downloads on recreations
clean = False, # use True if you want to clean conda cache (less space taken, but slower subsequent builds)
environment = "@//third_party/conda:py2_environment.yml", # label pointing to environment.yml file
quiet = False,
quiet = False, # use True to hide conda output
)

# create environment with python3
conda_create(
name = "py3_env",
timeout = 600, # each execute action can take up to 600 seconds
clean = True, # use False if you want to avoid downloads on recreations
clean = False, # use True if you want to clean conda cache (less space taken, but slower subsequent builds)
environment = "@//third_party/conda:py3_environment.yml", # label pointing to environment.yml file
quiet = False,
quiet = False, # use True to hide conda output
)

# register pythons from environment as toolchain
Expand Down