-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduce unset script_env variable to warning
- Loading branch information
Showing
5 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### Enhancements | ||
|
||
* Relax script_env error in outputs when variable referenced in script_env is not defined. | ||
This unifies current behavior with the top-level build. (#XXXX) | ||
|
||
### Bug fixes | ||
|
||
* <news item> | ||
|
||
### Deprecations | ||
|
||
* <news item> | ||
|
||
### Docs | ||
|
||
* <news item> | ||
|
||
### Other | ||
|
||
* <news item> |
19 changes: 19 additions & 0 deletions
19
tests/test-recipes/split-packages/_build_script_missing_var/meta.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package: | ||
name: test_build_script_in_output | ||
version: 1.0 | ||
|
||
outputs: | ||
- name: test_1 | ||
build: | ||
script_env: | ||
# set to test in the test runner code | ||
- TEST_FN | ||
script: | ||
- echo "test" > $PREFIX/$TEST_FN.txt # [unix] | ||
- echo "test" > %PREFIX%\%TEST_FN%.txt # [win] | ||
test: | ||
commands: | ||
# the filename here, `test`, won't be set unless build/script_env passes through | ||
# the value that is set in test_subpackages.py | ||
- test -e $PREFIX/.txt # [unix] | ||
- if not exist %PREFIX%\.txt exit 1 # [win] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters