ITADN

package_contents tests for files with brackets doesn't work

#2482Closedpavelzw 创建于 2026-05-08
:lady_beetle: bug
P
pavelzwcommented
```yml package: name: example-package version: 0.1.0 build: noarch: generic number: 0 script: - touch $PREFIX/"Test[with]brackets" tests: - package_contents: files: - Test[with]brackets ``` ``` ❯ rattler-build build -r recipe/ Processing recipe at path: /private/var/folders/rz/q1r4tv0n6ll38q18fbk419mc0000gn/T/tmp.m9Ypm5djoO/recipe/recipe.yaml ╭─ Finding outputs from recipe │ Found 1 variants │ │ Build variant: example-package-0.1.0-h4616a5c_0 │ │ ╭─────────────────┬──────────╮ │ │ Variant ┆ Version │ │ ╞═════════════════╪══════════╡ │ │ target_platform ┆ "noarch" │ │ ╰─────────────────┴──────────╯ │ ╰─────────────────── (took 0 seconds) Starting build of 1 outputs ╭─ Running build for recipe: example-package-0.1.0-h4616a5c_0 │ │ ╭─ Fetching source code │ │ No sources to fetch │ │ │ ╰─────────────────── (took 0 seconds) │ │ Finalized run dependencies: this output has no run dependencies │ │ ╭─ Installing build environment │ │ ✔ Successfully updated the build environment │ │ │ ╰─────────────────── (took 0 seconds) │ │ ╭─ Installing host environment │ │ ✔ Successfully updated the host environment │ │ │ ╰─────────────────── (took 0 seconds) │ │ ╭─ Packaging new files │ │ Copying done! │ │ Post-processing done! │ │ Writing test files │ │ Writing metadata for package │ │ Copying license files │ │ Copying recipe files │ │ │ │ Files in package: │ │ ├─ Test[with]brackets (0 B) │ │ ├─ info/about.json (69 B) │ │ ├─ info/hash_input.json (29 B) │ │ ├─ info/index.json (191 B) │ │ ├─ info/paths.json (231 B) │ │ ├─ info/recipe/recipe.yaml (212 B) │ │ ├─ info/recipe/rendered_recipe.yaml (1.84 KiB) │ │ ├─ info/recipe/variant_config.yaml (24 B) │ │ └─ info/tests/tests.yaml (3 B) │ │ │ │ Package statistics: 9 files (1 content, 8 metadata), total size: 2.58 KiB │ │ Creating target folder '/private/var/folders/rz/q1r4tv0n6ll38q18fbk419mc0000gn/T/tmp.m9Ypm5djoO/output/noarch' │ │ Creating empty build folder "/private/var/folders/rz/q1r4tv0n6ll38q18fbk419mc0000gn/T/tmp.m9Ypm5djoO/output/osx-arm64" │ │ Compressing archive... │ │ Archive written to '/private/var/folders/rz/q1r4tv0n6ll38q18fbk419mc0000gn/T/tmp.m9Ypm5djoO/output/noarch/example-package-0.1.0-h4616a5c_0.conda' │ │ │ ╰─────────────────── (took 0 seconds) │ Checking for symlinks ... │ │ ╭─ Running package tests │ │ │ │ ╭─ Package content test │ │ │ × error Package content test failed: │ │ │ × error - ❌ No match for files glob: Test[with]brackets │ │ │ │ │ ╰─────────────────── (took 0 seconds) │ │ │ ╰─────────────────── (took 0 seconds) │ ╰─────────────────── (took 0 seconds) Error: × failed package content tests: No match for files glob: Test[with]brackets ```
关闭于 2026-05-13 1 条评论