Make sure recipe file exists before accessing it#916
Merged
Conversation
Looks like a regression in #897 ```bash [root@56a05890a2a6 ~]# uvx aliBuild@1.17.14 build bogus ERROR: [Errno 2] No such file or directory: 'alidist/bogus.sh' [root@56a05890a2a6 ~]# uvx aliBuild@1.17.15 build bogus Traceback (most recent call last): File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/bin/aliBuild", line 132, in <module> doMain(args, parser) File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/bin/aliBuild", line 85, in doMain doBuild(args, parser) File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/lib64/python3.9/site-packages/alibuild_helpers/build.py", line 490, in doBuild getPackageList(packages = packages, File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/lib64/python3.9/site-packages/alibuild_helpers/utilities.py", line 457, in getPackageList err, spec, recipe = parseRecipe(getRecipeReader(filename, configDir)) File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/lib64/python3.9/site-packages/alibuild_helpers/utilities.py", line 311, in getRecipeReader m = re.search(r'^dist:(.*)@([^@]+)$', url) File "/usr/lib64/python3.9/re.py", line 201, in search return _compile(pattern, flags).search(string) TypeError: expected string or bytes-like object ```
Member
|
Indeed. This probably needs fixes also in bits... |
singiamtel
added a commit
that referenced
this pull request
Jul 1, 2025
Looks like a regression in #897 ```bash [root@56a05890a2a6 ~]# uvx aliBuild@1.17.14 build bogus ERROR: [Errno 2] No such file or directory: 'alidist/bogus.sh' [root@56a05890a2a6 ~]# uvx aliBuild@1.17.15 build bogus Traceback (most recent call last): File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/bin/aliBuild", line 132, in <module> doMain(args, parser) File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/bin/aliBuild", line 85, in doMain doBuild(args, parser) File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/lib64/python3.9/site-packages/alibuild_helpers/build.py", line 490, in doBuild getPackageList(packages = packages, File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/lib64/python3.9/site-packages/alibuild_helpers/utilities.py", line 457, in getPackageList err, spec, recipe = parseRecipe(getRecipeReader(filename, configDir)) File "/root/.cache/uv/archive-v0/GyJkpyQa9tPugmoKbsZ3N/lib64/python3.9/site-packages/alibuild_helpers/utilities.py", line 311, in getRecipeReader m = re.search(r'^dist:(.*)@([^@]+)$', url) File "/usr/lib64/python3.9/re.py", line 201, in search return _compile(pattern, flags).search(string) TypeError: expected string or bytes-like object ```
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Looks like a regression in #897