Skip to content
Snippets Groups Projects
Commit 0aaf5ff2 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[build] Fix assertion

parent 0ccf78f3
No related branches found
No related tags found
1 merge request!160Fix base_build() with a proper support for multi-package-building through conda-build
Pipeline #40145 failed
...@@ -815,14 +815,15 @@ if __name__ == "__main__": ...@@ -815,14 +815,15 @@ if __name__ == "__main__":
paths = get_output_path(metadata, conda_config) paths = get_output_path(metadata, conda_config)
# asserts we're building at the right location # asserts we're building at the right location
assert path.startswith(os.path.join(args.conda_root, "conda-bld")), ( for path in paths:
'Output path for build (%s) does not start with "%s" - this ' assert path.startswith(os.path.join(args.conda_root, "conda-bld")), (
"typically means this build is running on a shared builder and " 'Output path for build (%s) does not start with "%s" - this '
"the file ~/.conda/environments.txt is polluted with other " "typically means this build is running on a shared builder and "
"environment paths. To fix, empty that file and set its mode " "the file ~/.conda/environments.txt is polluted with other "
"to read-only for all." "environment paths. To fix, empty that file and set its mode "
% (path, os.path.join(args.conda_root, "conda-bld")) "to read-only for all."
) % (path, os.path.join(args.conda_root, "conda-bld"))
)
# retrieve the current build number(s) for this build # retrieve the current build number(s) for this build
build_numbers = [ build_numbers = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment