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

files in .gitignore are still seemed to be included in info/recipe./* folders #1105

Open
tdejager opened this issue Oct 10, 2024 · 0 comments

Comments

@tdejager
Copy link
Contributor

tdejager commented Oct 10, 2024

Run the following:

cargo init bar
cd bar
cargo b

Check the gitignore:

$ cat .gitignore
/target

Then add the recipe:

package:
  name: bar
  version: 0.0.1

source:
  path: .

build:
  script:
    - cargo install --path . --locked --root $PREFIX --no-track

requirements:
  build:
    - ${{ compiler("rust") }}

Run rattler-build:

rattler-build build --output-dir /tmp/output2

Still seems to include the target folder:

...snip
 │ ╭─ Packaging new files
 │ │ Copying done!
 │ │ builtin relink for "bar":
 │ │  - changing absolute rpath from "$PREFIX/lib" to "@loader_path/../lib"
 │ │ codesigning "bar"
 │ │ 
 │ │ [bin/bar] links against:
 │ │  └─ /usr/lib/libSystem.B.dylib (system)
 │ │ Post-processing done!
 │ │ Writing test files
 │ │ Writing metadata for package
 │ │ Copying license files
 │ │ Copying recipe files
 │ │ Creating entry points
 │ │ 
 │ │ Files in package:
 │ │   - bin/bar
 │ │   - info/about.json
 │ │   - info/hash_input.json
 │ │   - info/index.json
 │ │   - info/paths.json
 │ │   - info/recipe/.git/HEAD
 │ │   - info/recipe/.git/config
 │ │   - info/recipe/.git/description
 │ │   - info/recipe/.git/hooks/README.sample
 │ │   - info/recipe/.git/info/exclude
 │ │   - info/recipe/.git/objects/info
 │ │   - info/recipe/.git/objects/pack
 │ │   - info/recipe/.git/refs/heads
 │ │   - info/recipe/.git/refs/tags
 │ │   - info/recipe/.gitignore
 │ │   - info/recipe/Cargo.lock
 │ │   - info/recipe/Cargo.toml
 │ │   - info/recipe/recipe.yaml
 │ │   - info/recipe/rendered_recipe.yaml
 │ │   - info/recipe/src/main.rs
 │ │   - info/recipe/target/.rustc_info.json
 │ │   - info/recipe/target/CACHEDIR.TAG
 │ │   - info/recipe/target/debug/.cargo-lock
 │ │   - info/recipe/target/debug/.fingerprint/bar-3b0339437ef5d2a4/bin-bar
 │ │   - info/recipe/target/debug/.fingerprint/bar-3b0339437ef5d2a4/bin-bar.json
 │ │   - info/recipe/target/debug/.fingerprint/bar-3b0339437ef5d2a4/dep-bin-bar
 │ │   - info/recipe/target/debug/.fingerprint/bar-3b0339437ef5d2a4/invoked.timestamp
 │ │   - info/recipe/target/debug/bar
 │ │   - info/recipe/target/debug/bar.d
 │ │   - info/recipe/target/debug/build
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4.0dkf1vvrpd2ku3gcp8c4rmp0f.rcgu.o
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4.2bpx3cirtc5nw9l42t2z5hu6p.rcgu.o
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4.2m4vzl5n2v2oiq5kywg7k9ybt.rcgu.o
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4.d
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4.e8swttvkd5jjtht2r3xq0wgwq.rcgu.o
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4.eiw3w227g4a5c9xc62o6lba9u.rcgu.o
 │ │   - info/recipe/target/debug/deps/bar-3b0339437ef5d2a4.f1boqw5loke5hfhe6m4joy1tz.rcgu.o
 │ │   - info/recipe/target/debug/examples
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/0dkf1vvrpd2ku3gcp8c4rmp0f.o
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/2bpx3cirtc5nw9l42t2z5hu6p.o
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/2m4vzl5n2v2oiq5kywg7k9ybt.o
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/dep-graph.bin
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/e8swttvkd5jjtht2r3xq0wgwq.o
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/eiw3w227g4a5c9xc62o6lba9u.o
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/f1boqw5loke5hfhe6m4joy1tz.o
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/query-cache.bin
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh-d5tof6yadir5u08810olu3kil/work-products.bin
 │ │   - info/recipe/target/debug/incremental/bar-2omax74xmzgqs/s-h0pwe8ehd6-0iat2fh.lock
 │ │   - info/recipe/variant_config.yaml
 │ │   - info/tests/tests.yaml
 │ │ Creating target folder "/private/tmp/output2/osx-arm64"
 │ │ Compressing archive...
 │ │ Archive written to "/private/tmp/output2/osx-arm64/bar-0.0.1-h60d57d3_0.conda"

I would expect these to be ignored :)

@tdejager tdejager pinned this issue Oct 10, 2024
@wolfv wolfv unpinned this issue Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant