repro-env-0.4.0/.cargo_vcs_info.json0000644000000001360000000000100127520ustar { "git": { "sha1": "9e30e28181ef67a697243d5349fc5dddc6ba18a1" }, "path_in_vcs": "" }repro-env-0.4.0/.github/FUNDING.yml000064400000000000000000000000211046102023000147100ustar 00000000000000github: [kpcyrd] repro-env-0.4.0/.github/workflows/nix.yml000064400000000000000000000010441046102023000164570ustar 00000000000000name: NixOS/nix on: push: branches: [ "main" ] pull_request: branches: [ "main" ] schedule: - cron: '0 9 * * 1' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v20 with: nix_path: nixpkgs=channel:nixos-unstable - uses: DeterminateSystems/magic-nix-cache-action@v2 - run: nix build . - run: ls -lah result/bin/ - run: sha256sum result/bin/repro-env - run: result/bin/repro-env --help - run: ldd result/bin/repro-env repro-env-0.4.0/.github/workflows/rust.yml000064400000000000000000000100701046102023000166550ustar 00000000000000name: Rust on: push: branches: [ "main" ] pull_request: branches: [ "main" ] schedule: - cron: '0 9 * * 1' env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: 🏗️ Setup build cache uses: actions/cache@v3 continue-on-error: false with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ ~/.cache/repro-env/pkgs/ target/ key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo-release- - name: 🛠️ Build run: make - name: 🔍 SHA256 run: sha256sum target/x86_64-unknown-linux-musl/release/repro-env - name: 📦 Upload binary uses: actions/upload-artifact@v3 with: name: bin path: target/x86_64-unknown-linux-musl/release/repro-env build-macos: runs-on: macos-latest steps: - uses: actions/checkout@v3 - name: Set up cargo cache uses: actions/cache@v3 continue-on-error: false with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo-release- - name: Build run: cargo build --release --verbose integration-test: needs: build strategy: fail-fast: false matrix: test: - folder: examples/rust cmd: cargo build --release output: target/release/rust sha256: ea8997342bef06680784c9ea6ef7e22f7ba089e98927e870905503d0bf39acb1 - folder: examples/golang cmd: go build . output: hello sha256: dd41bdb93af4fb798f6b079368d6ee50a6907044c292ba6d2c98420ca8f012bf - folder: examples/debian cmd: gcc -static -o hello hello.c output: hello sha256: 2b24cfa838189c3aa6fa2440afe8508654830b6d3bad85d9b31958ae5c3fb429 - folder: examples/archlinux cmd: gcc -static -o hello hello.c output: hello sha256: 04e03fd681793db603feb66a4c8e8df3858f1e31372dc017d7a0cf255faf84c5 #- folder: examples/alpine # cmd: gcc -static -o hello hello.c # output: hello # sha256: a312585d54252990c2264351769f1cf2539f674db1142c7ea18fe10096debf12 name: ${{ matrix.test.folder }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - uses: actions/download-artifact@v3 - name: 🏗️ Setup build cache uses: actions/cache@v4 with: path: | ~/.cache/repro-env/pkgs/ key: repro-env-${{ matrix.test.folder }} - name: 🛠️ Build artifact run: chmod +x bin/repro-env && bin/repro-env -C ${{ matrix.test.folder }} build -- ${{ matrix.test.cmd }} - name: 🔍 Verify artifact run: cd ${{ matrix.test.folder }} && echo "${{ matrix.test.sha256 }} ${{ matrix.test.output }}" | sha256sum -c - unit-test: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Set up cargo cache uses: actions/cache@v3 continue-on-error: false with: path: | ~/.cargo/bin/ ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ target/ key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo-debug- - name: Run clippy run: cargo clippy -- -D warnings - name: Run tests run: cargo test --verbose fmt: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Run cargo fmt run: cargo fmt --all -- --check docs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 - name: Install dependencies run: sudo apt-get install scdoc - name: Build run: make docs repro-env-0.4.0/.gitignore000064400000000000000000000000321046102023000135250ustar 00000000000000/target /docs/*.1 /result repro-env-0.4.0/Cargo.lock0000644000002250250000000000100107330ustar # This file is automatically @generated by Cargo. # It is not intended for manual editing. version = 3 [[package]] name = "addr2line" version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" dependencies = [ "gimli", ] [[package]] name = "adler" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aead" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" dependencies = [ "crypto-common", "generic-array 0.14.7", ] [[package]] name = "aes" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ "cfg-if", "cipher", "cpufeatures", "zeroize", ] [[package]] name = "aes-gcm" version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [ "aead", "aes", "cipher", "ctr", "ghash", "subtle", ] [[package]] name = "aho-corasick" version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" dependencies = [ "memchr", ] [[package]] name = "android-tzdata" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" [[package]] name = "android_system_properties" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" dependencies = [ "libc", ] [[package]] name = "anstream" version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb" dependencies = [ "anstyle", "anstyle-parse", "anstyle-query", "anstyle-wincon", "colorchoice", "utf8parse", ] [[package]] name = "anstyle" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc" [[package]] name = "anstyle-parse" version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" dependencies = [ "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7" dependencies = [ "anstyle", "windows-sys 0.52.0", ] [[package]] name = "anyhow" version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1" [[package]] name = "ar" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69" [[package]] name = "ascii-canvas" version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8824ecca2e851cec16968d54a01dd372ef8f95b244fb84b84e70128be347c3c6" dependencies = [ "term", ] [[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" dependencies = [ "addr2line", "cc", "cfg-if", "libc", "miniz_oxide", "object", "rustc-demangle", ] [[package]] name = "base16ct" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base64" version = "0.21.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "base64ct" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bit-set" version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ "bit-vec", ] [[package]] name = "bit-vec" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" [[package]] name = "bitflags" version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" version = "2.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf" [[package]] name = "block-buffer" version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ "generic-array 0.14.7", ] [[package]] name = "block-padding" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93" dependencies = [ "generic-array 0.14.7", ] [[package]] name = "blowfish" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e412e2cd0f2b2d93e02543ceae7917b3c70331573df19ee046bcbc35e45e87d7" dependencies = [ "byteorder", "cipher", ] [[package]] name = "buffered-reader" version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b9b0a25eb06e83579bc985d836e1e3b957a7201301b48538764d2b2e78090d4" dependencies = [ "lazy_static", "libc", ] [[package]] name = "bumpalo" version = "3.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ea184aa71bb362a1157c896979544cc23974e08fd265f29ea96b59f0b4a555b" [[package]] name = "byteorder" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "camellia" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3264e2574e9ef2b53ce6f536dea83a69ac0bc600b762d1523ff83fe07230ce30" dependencies = [ "byteorder", "cipher", ] [[package]] name = "cast5" version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "26b07d673db1ccf000e90f54b819db9e75a8348d6eb056e9b8ab53231b7a9911" dependencies = [ "cipher", ] [[package]] name = "cc" version = "1.0.88" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "02f341c093d19155a6e41631ce5971aac4e9a868262212153124c15fa22d1cdc" [[package]] name = "cfb-mode" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "738b8d467867f80a71351933f70461f5b56f24d5c93e0cf216e59229c968d330" dependencies = [ "cipher", ] [[package]] name = "cfg-if" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cfg_aliases" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" [[package]] name = "chrono" version = "0.4.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b" dependencies = [ "android-tzdata", "iana-time-zone", "js-sys", "num-traits", "wasm-bindgen", "windows-targets 0.52.4", ] [[package]] name = "cipher" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" dependencies = [ "crypto-common", "inout", "zeroize", ] [[package]] name = "clap" version = "4.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c918d541ef2913577a0f9566e9ce27cb35b6df072075769e0b26cb5a554520da" dependencies = [ "clap_builder", "clap_derive", ] [[package]] name = "clap_builder" version = "4.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9f3e7391dad68afb0c2ede1bf619f579a3dc9c2ec67f089baa397123a2f3d1eb" dependencies = [ "anstream", "anstyle", "clap_lex", "strsim", ] [[package]] name = "clap_complete" version = "4.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "885e4d7d5af40bfb99ae6f9433e292feac98d452dcb3ec3d25dfe7552b77da8c" dependencies = [ "clap", ] [[package]] name = "clap_derive" version = "4.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "307bc0538d5f0f83b8248db3087aa92fe504e4691294d0c96c0eabc33f47ba47" dependencies = [ "heck", "proc-macro2", "quote", "syn 2.0.52", ] [[package]] name = "clap_lex" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" [[package]] name = "clone-file" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3998407c42ae2d750d4dfb7478d3b4995265913b2b13ea03f73bc8fc6478e9b2" dependencies = [ "nix 0.26.4", ] [[package]] name = "cmac" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8543454e3c3f5126effff9cd44d562af4e31fb8ce1cc0d3dcd8f084515dbc1aa" dependencies = [ "cipher", "dbl", "digest", ] [[package]] name = "colorchoice" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" [[package]] name = "const-oid" version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "core-foundation" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ "core-foundation-sys", "libc", ] [[package]] name = "core-foundation-sys" version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "cpufeatures" version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ "libc", ] [[package]] name = "crc" version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86ec7a15cbe22e59248fc7eadb1907dab5ba09372595da4d73dd805ed4417dfe" dependencies = [ "crc-catalog", ] [[package]] name = "crc-catalog" version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" [[package]] name = "crc32fast" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa" dependencies = [ "cfg-if", ] [[package]] name = "crunchy" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" [[package]] name = "crypto-bigint" version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76" dependencies = [ "generic-array 0.14.7", "rand_core", "subtle", "zeroize", ] [[package]] name = "crypto-common" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array 0.14.7", "rand_core", "typenum", ] [[package]] name = "ctr" version = "0.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" dependencies = [ "cipher", ] [[package]] name = "curve25519-dalek" version = "4.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a677b8922c94e01bdbb12126b0bc852f00447528dee1782229af9c720c3f348" dependencies = [ "cfg-if", "cpufeatures", "curve25519-dalek-derive", "digest", "fiat-crypto", "platforms", "rustc_version", "subtle", "zeroize", ] [[package]] name = "curve25519-dalek-derive" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", "syn 2.0.52", ] [[package]] name = "data-encoding" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" [[package]] name = "dbl" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd2735a791158376708f9347fe8faba9667589d82427ef3aed6794a8981de3d9" dependencies = [ "generic-array 0.14.7", ] [[package]] name = "der" version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fffa369a668c8af7dbf8b5e56c9f744fbd399949ed171606040001947de40b1c" dependencies = [ "const-oid", "pem-rfc7468", "zeroize", ] [[package]] name = "deranged" version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" dependencies = [ "powerfmt", ] [[package]] name = "derive_more" version = "0.99.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" dependencies = [ "proc-macro2", "quote", "syn 1.0.109", ] [[package]] name = "des" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ffdd80ce8ce993de27e9f063a444a4d53ce8e8db4c1f00cc03af5ad5a9867a1e" dependencies = [ "cipher", ] [[package]] name = "digest" version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "const-oid", "crypto-common", "subtle", ] [[package]] name = "dirs" version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" dependencies = [ "dirs-sys", ] [[package]] name = "dirs-next" version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" dependencies = [ "cfg-if", "dirs-sys-next", ] [[package]] name = "dirs-sys" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" dependencies = [ "libc", "option-ext", "redox_users", "windows-sys 0.48.0", ] [[package]] name = "dirs-sys-next" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ "libc", "redox_users", "winapi", ] [[package]] name = "dsa" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48bc224a9084ad760195584ce5abb3c2c34a225fa312a128ad245a6b412b7689" dependencies = [ "digest", "num-bigint-dig", "num-traits", "pkcs8", "rfc6979", "sha2", "signature", "zeroize", ] [[package]] name = "dyn-clone" version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "eax" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9954fabd903b82b9d7a68f65f97dc96dd9ad368e40ccc907a7c19d53e6bfac28" dependencies = [ "aead", "cipher", "cmac", "ctr", "subtle", ] [[package]] name = "ecb" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a8bfa975b1aec2145850fcaa1c6fe269a16578c44705a532ae3edc92b8881c7" dependencies = [ "cipher", ] [[package]] name = "ecdsa" version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ "der", "digest", "elliptic-curve", "rfc6979", "signature", "spki", ] [[package]] name = "ed25519" version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" dependencies = [ "pkcs8", "signature", ] [[package]] name = "ed25519-dalek" version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a3daa8e81a3963a60642bcc1f90a670680bd4a77535faa384e9d1c79d620871" dependencies = [ "curve25519-dalek", "ed25519", "rand_core", "serde", "sha2", "subtle", "zeroize", ] [[package]] name = "either" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a" [[package]] name = "elliptic-curve" version = "0.13.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47" dependencies = [ "base16ct", "crypto-bigint", "digest", "ff", "generic-array 0.14.7", "group", "hkdf", "pem-rfc7468", "pkcs8", "rand_core", "sec1", "subtle", "zeroize", ] [[package]] name = "ena" version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c533630cf40e9caa44bd91aadc88a75d75a4c3a12b4cfde353cbed41daa1e1f1" dependencies = [ "log", ] [[package]] name = "encoding_rs" version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" dependencies = [ "cfg-if", ] [[package]] name = "env_filter" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea" dependencies = [ "log", "regex", ] [[package]] name = "env_logger" version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c012a26a7f605efc424dd53697843a72be7dc86ad2d01f7814337794a12231d" dependencies = [ "anstream", "anstyle", "env_filter", "humantime", "log", ] [[package]] name = "equivalent" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a258e46cdc063eb8519c00b9fc845fc47bcfca4130e2f08e88665ceda8474245" dependencies = [ "libc", "windows-sys 0.52.0", ] [[package]] name = "fastrand" version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" [[package]] name = "fd-lock" version = "4.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7e5768da2206272c81ef0b5e951a41862938a6070da63bcea197899942d3b947" dependencies = [ "cfg-if", "rustix", "windows-sys 0.52.0", ] [[package]] name = "ff" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ded41244b729663b1e574f1b4fb731469f69f79c17667b5d776b16cda0479449" dependencies = [ "rand_core", "subtle", ] [[package]] name = "fiat-crypto" version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1676f435fc1dadde4d03e43f5d62b259e1ce5f40bd4ffb21db2b42ebe59c1382" [[package]] name = "filetime" version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" dependencies = [ "cfg-if", "libc", "redox_syscall", "windows-sys 0.52.0", ] [[package]] name = "fixedbitset" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e" dependencies = [ "crc32fast", "miniz_oxide", ] [[package]] name = "fnv" version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "form_urlencoded" version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ "percent-encoding", ] [[package]] name = "futures-channel" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", ] [[package]] name = "futures-core" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-io" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" [[package]] name = "futures-macro" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", "syn 2.0.52", ] [[package]] name = "futures-sink" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "futures-task" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-util" version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-core", "futures-io", "futures-macro", "futures-sink", "futures-task", "memchr", "pin-project-lite", "pin-utils", "slab", ] [[package]] name = "generic-array" version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ "typenum", "version_check", "zeroize", ] [[package]] name = "generic-array" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe739944a5406424e080edccb6add95685130b9f160d5407c639c7df0c5836b0" dependencies = [ "typenum", ] [[package]] name = "getrandom" version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" dependencies = [ "cfg-if", "js-sys", "libc", "wasi", "wasm-bindgen", ] [[package]] name = "ghash" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d930750de5717d2dd0b8c0d42c076c0e884c81a73e6cab859bbd2339c71e3e40" dependencies = [ "opaque-debug", "polyval", ] [[package]] name = "gimli" version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "group" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63" dependencies = [ "ff", "rand_core", "subtle", ] [[package]] name = "h2" version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" dependencies = [ "bytes", "fnv", "futures-core", "futures-sink", "futures-util", "http", "indexmap", "slab", "tokio", "tokio-util", "tracing", ] [[package]] name = "hashbrown" version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "heck" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "hex" version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hkdf" version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ "hmac", ] [[package]] name = "hmac" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" dependencies = [ "digest", ] [[package]] name = "http" version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" dependencies = [ "bytes", "fnv", "itoa", ] [[package]] name = "http-body" version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", "http", "pin-project-lite", ] [[package]] name = "httparse" version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "humantime" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" version = "0.14.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" dependencies = [ "bytes", "futures-channel", "futures-core", "futures-util", "h2", "http", "http-body", "httparse", "httpdate", "itoa", "pin-project-lite", "socket2", "tokio", "tower-service", "tracing", "want", ] [[package]] name = "hyper-rustls" version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", "http", "hyper", "rustls", "tokio", "tokio-rustls", ] [[package]] name = "iana-time-zone" version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ "android_system_properties", "core-foundation-sys", "iana-time-zone-haiku", "js-sys", "wasm-bindgen", "windows-core", ] [[package]] name = "iana-time-zone-haiku" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ "cc", ] [[package]] name = "idea" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "075557004419d7f2031b8bb7f44bb43e55a83ca7b63076a8fb8fe75753836477" dependencies = [ "cipher", ] [[package]] name = "idna" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ "unicode-bidi", "unicode-normalization", ] [[package]] name = "indexmap" version = "2.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "967d6dd42f16dbf0eb8040cb9e477933562684d3918f7d253f2ff9087fb3e7a3" dependencies = [ "equivalent", "hashbrown", "serde", ] [[package]] name = "inout" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" dependencies = [ "block-padding", "generic-array 0.14.7", ] [[package]] name = "ipnet" version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "itertools" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" dependencies = [ "either", ] [[package]] name = "itoa" version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "js-sys" version = "0.3.68" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "406cda4b368d531c842222cf9d2600a9a4acce8d29423695379c6868a143a9ee" dependencies = [ "wasm-bindgen", ] [[package]] name = "lalrpop" version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55cb077ad656299f160924eb2912aa147d7339ea7d69e1b5517326fdcec3c1ca" dependencies = [ "ascii-canvas", "bit-set", "ena", "itertools", "lalrpop-util", "petgraph", "regex", "regex-syntax", "string_cache", "term", "tiny-keccak", "unicode-xid", "walkdir", ] [[package]] name = "lalrpop-util" version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "507460a910eb7b32ee961886ff48539633b788a36b65692b95f225b844c82553" dependencies = [ "regex-automata", ] [[package]] name = "lazy_static" version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" dependencies = [ "spin 0.5.2", ] [[package]] name = "libc" version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "libm" version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" [[package]] name = "libredox" version = "0.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8" dependencies = [ "bitflags 2.4.2", "libc", "redox_syscall", ] [[package]] name = "linux-raw-sys" version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" [[package]] name = "lock_api" version = "0.4.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" dependencies = [ "autocfg", "scopeguard", ] [[package]] name = "log" version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "lz4_flex" version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "912b45c753ff5f7f5208307e8ace7d2a2e30d024e26d3509f3dce546c044ce15" dependencies = [ "twox-hash", ] [[package]] name = "lzma-rs" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "297e814c836ae64db86b36cf2a557ba54368d03f6afcd7d947c266692f71115e" dependencies = [ "byteorder", "crc", ] [[package]] name = "md-5" version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" dependencies = [ "cfg-if", "digest", ] [[package]] name = "memchr" version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "memsec" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fa0916b001582d253822171bd23f4a0229d32b9507fae236f5da8cad515ba7c" [[package]] name = "mime" version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" dependencies = [ "adler", ] [[package]] name = "mio" version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" dependencies = [ "libc", "wasi", "windows-sys 0.48.0", ] [[package]] name = "new_debug_unreachable" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" [[package]] name = "nix" version = "0.26.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" dependencies = [ "bitflags 1.3.2", "cfg-if", "libc", ] [[package]] name = "nix" version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" dependencies = [ "bitflags 2.4.2", "cfg-if", "cfg_aliases", "libc", ] [[package]] name = "num-bigint-dig" version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc84195820f291c7697304f3cbdadd1cb7199c0efc917ff5eafd71225c136151" dependencies = [ "byteorder", "lazy_static", "libm", "num-integer", "num-iter", "num-traits", "rand", "smallvec", "zeroize", ] [[package]] name = "num-conv" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" [[package]] name = "num-integer" version = "0.1.46" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ "num-traits", ] [[package]] name = "num-iter" version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d869c01cc0c455284163fd0092f1f93835385ccab5a98a0dcc497b2f8bf055a9" dependencies = [ "autocfg", "num-integer", "num-traits", ] [[package]] name = "num-traits" version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" dependencies = [ "autocfg", "libm", ] [[package]] name = "num_cpus" version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ "hermit-abi", "libc", ] [[package]] name = "object" version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" dependencies = [ "memchr", ] [[package]] name = "once_cell" version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "opaque-debug" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "openssl-probe" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "option-ext" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "p256" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b" dependencies = [ "ecdsa", "elliptic-curve", "primeorder", "sha2", ] [[package]] name = "parking_lot" version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", "parking_lot_core", ] [[package]] name = "parking_lot_core" version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" dependencies = [ "cfg-if", "libc", "redox_syscall", "smallvec", "windows-targets 0.48.5", ] [[package]] name = "peekread" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "978122cdc72f39ed3c6343907453570570699169aace43dd09d46b52cc5f681d" [[package]] name = "pem-rfc7468" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" dependencies = [ "base64ct", ] [[package]] name = "percent-encoding" version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "petgraph" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" dependencies = [ "fixedbitset", "indexmap", ] [[package]] name = "phf_shared" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" dependencies = [ "siphasher", ] [[package]] name = "pin-project-lite" version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" [[package]] name = "pin-utils" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkcs1" version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" dependencies = [ "der", "pkcs8", "spki", ] [[package]] name = "pkcs8" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ "der", "spki", ] [[package]] name = "platforms" version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "626dec3cac7cc0e1577a2ec3fc496277ec2baa084bebad95bb6fdbfae235f84c" [[package]] name = "polyval" version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d52cff9d1d4dee5fe6d03729099f4a310a41179e0a10dbf542039873f2e826fb" dependencies = [ "cfg-if", "cpufeatures", "opaque-debug", "universal-hash", ] [[package]] name = "powerfmt" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "precomputed-hash" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "primeorder" version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6" dependencies = [ "elliptic-curve", ] [[package]] name = "proc-macro2" version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] [[package]] name = "quote" version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] [[package]] name = "rand" version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "rand_chacha", "rand_core", ] [[package]] name = "rand_chacha" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core", ] [[package]] name = "rand_core" version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ "getrandom", ] [[package]] name = "redox_syscall" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ "bitflags 1.3.2", ] [[package]] name = "redox_users" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4" dependencies = [ "getrandom", "libredox", "thiserror", ] [[package]] name = "regex" version = "1.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15" dependencies = [ "aho-corasick", "memchr", "regex-automata", "regex-syntax", ] [[package]] name = "regex-automata" version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd" dependencies = [ "aho-corasick", "memchr", "regex-syntax", ] [[package]] name = "regex-syntax" version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "repro-env" version = "0.4.0" dependencies = [ "anyhow", "ar", "bytes", "clap", "clap_complete", "clone-file", "data-encoding", "dirs", "env_logger", "fd-lock", "flate2", "hex", "indexmap", "log", "lz4_flex", "lzma-rs", "memchr", "nix 0.28.0", "peekread", "reqwest", "ruzstd", "sequoia-openpgp", "serde", "serde_json", "sha1", "sha2", "tar", "tempfile", "time", "tokio", "toml", "urlencoding", ] [[package]] name = "reqwest" version = "0.11.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251" dependencies = [ "base64", "bytes", "encoding_rs", "futures-core", "futures-util", "h2", "http", "http-body", "hyper", "hyper-rustls", "ipnet", "js-sys", "log", "mime", "once_cell", "percent-encoding", "pin-project-lite", "rustls", "rustls-native-certs", "rustls-pemfile", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", "system-configuration", "tokio", "tokio-rustls", "tokio-socks", "tokio-util", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", "wasm-streams", "web-sys", "winreg", ] [[package]] name = "rfc6979" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2" dependencies = [ "hmac", "subtle", ] [[package]] name = "ring" version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ "cc", "cfg-if", "getrandom", "libc", "spin 0.9.8", "untrusted", "windows-sys 0.52.0", ] [[package]] name = "ripemd" version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd124222d17ad93a644ed9d011a40f4fb64aa54275c08cc216524a9ea82fb09f" dependencies = [ "digest", ] [[package]] name = "rsa" version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d0e5124fcb30e76a7e79bfee683a2746db83784b86289f6251b54b7950a0dfc" dependencies = [ "const-oid", "digest", "num-bigint-dig", "num-integer", "num-traits", "pkcs1", "pkcs8", "rand_core", "signature", "spki", "subtle", "zeroize", ] [[package]] name = "rustc-demangle" version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "rustc_version" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ "semver", ] [[package]] name = "rustix" version = "0.38.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949" dependencies = [ "bitflags 2.4.2", "errno", "libc", "linux-raw-sys", "windows-sys 0.52.0", ] [[package]] name = "rustls" version = "0.21.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d5a6813c0759e4609cd494e8e725babae6a2ca7b62a5536a13daaec6fcb7ba" dependencies = [ "log", "ring", "rustls-webpki", "sct", ] [[package]] name = "rustls-native-certs" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9aace74cb666635c918e9c12bc0d348266037aa8eb599b5cba565709a8dff00" dependencies = [ "openssl-probe", "rustls-pemfile", "schannel", "security-framework", ] [[package]] name = "rustls-pemfile" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" dependencies = [ "base64", ] [[package]] name = "rustls-webpki" version = "0.101.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" dependencies = [ "ring", "untrusted", ] [[package]] name = "rustversion" version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4" [[package]] name = "ruzstd" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5174a470eeb535a721ae9fdd6e291c2411a906b96592182d05217591d5c5cf7b" dependencies = [ "byteorder", "derive_more", "twox-hash", ] [[package]] name = "ryu" version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" [[package]] name = "same-file" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" dependencies = [ "winapi-util", ] [[package]] name = "schannel" version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" dependencies = [ "windows-sys 0.52.0", ] [[package]] name = "scopeguard" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "sct" version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" dependencies = [ "ring", "untrusted", ] [[package]] name = "sec1" version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", "der", "generic-array 0.14.7", "pkcs8", "subtle", "zeroize", ] [[package]] name = "security-framework" version = "2.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" dependencies = [ "bitflags 1.3.2", "core-foundation", "core-foundation-sys", "libc", "security-framework-sys", ] [[package]] name = "security-framework-sys" version = "2.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" dependencies = [ "core-foundation-sys", "libc", ] [[package]] name = "semver" version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca" [[package]] name = "sequoia-openpgp" version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ebf154ce4af3d7983de8fded403f98ff9eb3ee38dffccea0472ac38aa4276df4" dependencies = [ "aes", "aes-gcm", "anyhow", "base64", "block-padding", "blowfish", "buffered-reader", "camellia", "cast5", "cfb-mode", "chrono", "cipher", "des", "digest", "dsa", "dyn-clone", "eax", "ecb", "ecdsa", "ed25519", "ed25519-dalek", "getrandom", "idea", "idna", "lalrpop", "lalrpop-util", "lazy_static", "libc", "md-5", "memsec", "num-bigint-dig", "once_cell", "p256", "rand", "rand_core", "regex", "regex-syntax", "ripemd", "rsa", "sha1collisiondetection", "sha2", "thiserror", "twofish", "typenum", "x25519-dalek", "xxhash-rust", ] [[package]] name = "serde" version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", "syn 2.0.52", ] [[package]] name = "serde_json" version = "1.0.114" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" dependencies = [ "itoa", "ryu", "serde", ] [[package]] name = "serde_spanned" version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1" dependencies = [ "serde", ] [[package]] name = "serde_urlencoded" version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" dependencies = [ "form_urlencoded", "itoa", "ryu", "serde", ] [[package]] name = "sha1" version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", "cpufeatures", "digest", ] [[package]] name = "sha1collisiondetection" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1d5c4be690002e8a5d7638b0b7323f03c268c7a919bd8af69ce963a4dc83220" dependencies = [ "const-oid", "digest", "generic-array 1.0.0", ] [[package]] name = "sha2" version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ "cfg-if", "cpufeatures", "digest", ] [[package]] name = "signal-hook-registry" version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1" dependencies = [ "libc", ] [[package]] name = "signature" version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" dependencies = [ "digest", "rand_core", ] [[package]] name = "siphasher" version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" [[package]] name = "slab" version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ "autocfg", ] [[package]] name = "smallvec" version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7" [[package]] name = "socket2" version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" dependencies = [ "libc", "windows-sys 0.52.0", ] [[package]] name = "spin" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "spin" version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" [[package]] name = "spki" version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", "der", ] [[package]] name = "static_assertions" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "string_cache" version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" dependencies = [ "new_debug_unreachable", "once_cell", "parking_lot", "phf_shared", "precomputed-hash", ] [[package]] name = "strsim" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01" [[package]] name = "subtle" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "syn" version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "syn" version = "2.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b699d15b36d1f02c3e7c69f8ffef53de37aefae075d8488d4ba1a7788d574a07" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] [[package]] name = "sync_wrapper" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" [[package]] name = "system-configuration" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ "bitflags 1.3.2", "core-foundation", "system-configuration-sys", ] [[package]] name = "system-configuration-sys" version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" dependencies = [ "core-foundation-sys", "libc", ] [[package]] name = "tar" version = "0.4.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b16afcea1f22891c49a00c751c7b63b2233284064f11a200fc624137c51e2ddb" dependencies = [ "filetime", "libc", "xattr", ] [[package]] name = "tempfile" version = "3.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ "cfg-if", "fastrand", "rustix", "windows-sys 0.52.0", ] [[package]] name = "term" version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f" dependencies = [ "dirs-next", "rustversion", "winapi", ] [[package]] name = "thiserror" version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" dependencies = [ "proc-macro2", "quote", "syn 2.0.52", ] [[package]] name = "time" version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749" dependencies = [ "deranged", "itoa", "num-conv", "powerfmt", "serde", "time-core", "time-macros", ] [[package]] name = "time-core" version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774" dependencies = [ "num-conv", "time-core", ] [[package]] name = "tiny-keccak" version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" dependencies = [ "crunchy", ] [[package]] name = "tinyvec" version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" dependencies = [ "tinyvec_macros", ] [[package]] name = "tinyvec_macros" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" version = "1.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" dependencies = [ "backtrace", "bytes", "libc", "mio", "num_cpus", "pin-project-lite", "signal-hook-registry", "socket2", "tokio-macros", "windows-sys 0.48.0", ] [[package]] name = "tokio-macros" version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", "syn 2.0.52", ] [[package]] name = "tokio-rustls" version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" dependencies = [ "rustls", "tokio", ] [[package]] name = "tokio-socks" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51165dfa029d2a65969413a6cc96f354b86b464498702f174a4efa13608fd8c0" dependencies = [ "either", "futures-util", "thiserror", "tokio", ] [[package]] name = "tokio-util" version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" dependencies = [ "bytes", "futures-core", "futures-sink", "pin-project-lite", "tokio", "tracing", ] [[package]] name = "toml" version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a9aad4a3066010876e8dcf5a8a06e70a558751117a145c6ce2b82c2e2054290" dependencies = [ "serde", "serde_spanned", "toml_datetime", "toml_edit", ] [[package]] name = "toml_datetime" version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1" dependencies = [ "serde", ] [[package]] name = "toml_edit" version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6" dependencies = [ "indexmap", "serde", "serde_spanned", "toml_datetime", "winnow", ] [[package]] name = "tower-service" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ "pin-project-lite", "tracing-core", ] [[package]] name = "tracing-core" version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ "once_cell", ] [[package]] name = "try-lock" version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "twofish" version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a78e83a30223c757c3947cd144a31014ff04298d8719ae10d03c31c0448c8013" dependencies = [ "cipher", ] [[package]] name = "twox-hash" version = "1.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", "static_assertions", ] [[package]] name = "typenum" version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "unicode-bidi" version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" dependencies = [ "tinyvec", ] [[package]] name = "unicode-xid" version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "universal-hash" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" dependencies = [ "crypto-common", "subtle", ] [[package]] name = "untrusted" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" dependencies = [ "form_urlencoded", "idna", "percent-encoding", ] [[package]] name = "urlencoding" version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" [[package]] name = "utf8parse" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "version_check" version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "walkdir" version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee" dependencies = [ "same-file", "winapi-util", ] [[package]] name = "want" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" dependencies = [ "try-lock", ] [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f" dependencies = [ "cfg-if", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", "syn 2.0.52", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" version = "0.4.41" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877b9c3f61ceea0e56331985743b13f3d25c406a7098d45180fb5f09bc19ed97" dependencies = [ "cfg-if", "js-sys", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed" dependencies = [ "quote", "wasm-bindgen-macro-support", ] [[package]] name = "wasm-bindgen-macro-support" version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" dependencies = [ "proc-macro2", "quote", "syn 2.0.52", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838" [[package]] name = "wasm-streams" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129" dependencies = [ "futures-util", "js-sys", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", ] [[package]] name = "web-sys" version = "0.3.68" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96565907687f7aceb35bc5fc03770a8a0471d82e479f25832f54a0e3f4b28446" dependencies = [ "js-sys", "wasm-bindgen", ] [[package]] name = "winapi" version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ "winapi-i686-pc-windows-gnu", "winapi-x86_64-pc-windows-gnu", ] [[package]] name = "winapi-i686-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" dependencies = [ "winapi", ] [[package]] name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows-core" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ "windows-targets 0.52.4", ] [[package]] name = "windows-sys" version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ "windows-targets 0.48.5", ] [[package]] name = "windows-sys" version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ "windows-targets 0.52.4", ] [[package]] name = "windows-targets" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ "windows_aarch64_gnullvm 0.48.5", "windows_aarch64_msvc 0.48.5", "windows_i686_gnu 0.48.5", "windows_i686_msvc 0.48.5", "windows_x86_64_gnu 0.48.5", "windows_x86_64_gnullvm 0.48.5", "windows_x86_64_msvc 0.48.5", ] [[package]] name = "windows-targets" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" dependencies = [ "windows_aarch64_gnullvm 0.52.4", "windows_aarch64_msvc 0.52.4", "windows_i686_gnu 0.52.4", "windows_i686_msvc 0.52.4", "windows_x86_64_gnu 0.52.4", "windows_x86_64_gnullvm 0.52.4", "windows_x86_64_msvc 0.52.4", ] [[package]] name = "windows_aarch64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_gnullvm" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" [[package]] name = "windows_aarch64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_aarch64_msvc" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" [[package]] name = "windows_i686_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_gnu" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" [[package]] name = "windows_i686_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_i686_msvc" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" [[package]] name = "windows_x86_64_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnu" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" [[package]] name = "windows_x86_64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_gnullvm" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" [[package]] name = "windows_x86_64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "windows_x86_64_msvc" version = "0.52.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" [[package]] name = "winnow" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "44e19b97e00a4d3db3cdb9b53c8c5f87151b5689b82cc86c2848cbdcccb2689b" dependencies = [ "memchr", ] [[package]] name = "winreg" version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" dependencies = [ "cfg-if", "windows-sys 0.48.0", ] [[package]] name = "x25519-dalek" version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" dependencies = [ "curve25519-dalek", "rand_core", "zeroize", ] [[package]] name = "xattr" version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" dependencies = [ "libc", "linux-raw-sys", "rustix", ] [[package]] name = "xxhash-rust" version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "927da81e25be1e1a2901d59b81b37dd2efd1fc9c9345a55007f09bf5a2d3ee03" [[package]] name = "zeroize" version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" dependencies = [ "zeroize_derive", ] [[package]] name = "zeroize_derive" version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", "syn 2.0.52", ] repro-env-0.4.0/Cargo.toml0000644000000047760000000000100107660ustar # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "repro-env" version = "0.4.0" authors = ["kpcyrd "] description = "Dependency lockfiles for reproducible build environments 📦🔒" readme = "README.md" categories = ["command-line-utilities"] license = "GPL-3.0-or-later" repository = "https://github.com/kpcyrd/repro-env" [dependencies.anyhow] version = "1.0.71" [dependencies.ar] version = "0.9.0" [dependencies.bytes] version = "1.4.0" [dependencies.clap] version = "4" features = ["derive"] [dependencies.clap_complete] version = "4" [dependencies.clone-file] version = "0.1.0" [dependencies.data-encoding] version = "2.4.0" [dependencies.dirs] version = "5.0.1" [dependencies.env_logger] version = "0.11" [dependencies.fd-lock] version = "4.0.0" [dependencies.flate2] version = "1.0.26" [dependencies.hex] version = "0.4.3" [dependencies.indexmap] version = "2.1.0" features = ["serde"] [dependencies.log] version = "0.4.19" [dependencies.lz4_flex] version = "0.11.1" [dependencies.lzma-rs] version = "0.3.0" [dependencies.memchr] version = "2.5.0" [dependencies.nix] version = "0.28" features = ["sched"] default-features = false [dependencies.peekread] version = "0.1.1" [dependencies.reqwest] version = "0.11.18" features = [ "rustls-tls-native-roots", "tokio-socks", "stream", ] default-features = false [dependencies.ruzstd] version = "0.6" [dependencies.sequoia-openpgp] version = "1.18" features = [ "crypto-rust", "allow-experimental-crypto", "allow-variable-time-crypto", ] default-features = false [dependencies.serde] version = "1" features = ["derive"] [dependencies.serde_json] version = "1" [dependencies.sha1] version = "0.10.5" [dependencies.sha2] version = "0.10.7" [dependencies.tar] version = "0.4.38" [dependencies.tempfile] version = "3.6.0" [dependencies.time] version = "0.3" features = ["formatting"] [dependencies.tokio] version = "1" features = [ "macros", "rt-multi-thread", "fs", "process", "signal", ] [dependencies.toml] version = "0.8" [dependencies.urlencoding] version = "2.1.2" repro-env-0.4.0/Cargo.toml.orig0000644000000030510000000000100117060ustar [package] name = "repro-env" version = "0.4.0" description = "Dependency lockfiles for reproducible build environments 📦🔒" authors = ["kpcyrd "] license = "GPL-3.0-or-later" repository = "https://github.com/kpcyrd/repro-env" categories = ["command-line-utilities"] edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] anyhow = "1.0.71" ar = "0.9.0" bytes = "1.4.0" clap = { version = "4", features = ["derive"] } clap_complete = "4" clone-file = "0.1.0" data-encoding = "2.4.0" dirs = "5.0.1" env_logger = "0.11" fd-lock = "4.0.0" flate2 = "1.0.26" hex = "0.4.3" indexmap = { version = "2.1.0", features = ["serde"] } log = "0.4.19" lz4_flex = "0.11.1" lzma-rs = "0.3.0" memchr = "2.5.0" nix = { version = "0.28", default-features = false, features = ["sched"] } peekread = "0.1.1" reqwest = { version = "0.11.18", features = ["rustls-tls-native-roots", "tokio-socks", "stream"], default-features = false } ruzstd = "0.6" # only the cert parser is used, but sequoia-openpgp doesn't allow building with no backend sequoia-openpgp = { version = "1.18", default-features = false, features = ["crypto-rust", "allow-experimental-crypto", "allow-variable-time-crypto"] } serde = { version = "1", features = ["derive"] } serde_json = "1" sha1 = "0.10.5" sha2 = "0.10.7" tar = "0.4.38" tempfile = "3.6.0" time = { version = "0.3", features = ["formatting"] } tokio = { version = "1", features = ["macros", "rt-multi-thread", "fs", "process", "signal"] } toml = "0.8" urlencoding = "2.1.2" repro-env-0.4.0/Cargo.toml.orig000064400000000000000000000030511046102023000144300ustar 00000000000000[package] name = "repro-env" version = "0.4.0" description = "Dependency lockfiles for reproducible build environments 📦🔒" authors = ["kpcyrd "] license = "GPL-3.0-or-later" repository = "https://github.com/kpcyrd/repro-env" categories = ["command-line-utilities"] edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] anyhow = "1.0.71" ar = "0.9.0" bytes = "1.4.0" clap = { version = "4", features = ["derive"] } clap_complete = "4" clone-file = "0.1.0" data-encoding = "2.4.0" dirs = "5.0.1" env_logger = "0.11" fd-lock = "4.0.0" flate2 = "1.0.26" hex = "0.4.3" indexmap = { version = "2.1.0", features = ["serde"] } log = "0.4.19" lz4_flex = "0.11.1" lzma-rs = "0.3.0" memchr = "2.5.0" nix = { version = "0.28", default-features = false, features = ["sched"] } peekread = "0.1.1" reqwest = { version = "0.11.18", features = ["rustls-tls-native-roots", "tokio-socks", "stream"], default-features = false } ruzstd = "0.6" # only the cert parser is used, but sequoia-openpgp doesn't allow building with no backend sequoia-openpgp = { version = "1.18", default-features = false, features = ["crypto-rust", "allow-experimental-crypto", "allow-variable-time-crypto"] } serde = { version = "1", features = ["derive"] } serde_json = "1" sha1 = "0.10.5" sha2 = "0.10.7" tar = "0.4.38" tempfile = "3.6.0" time = { version = "0.3", features = ["formatting"] } tokio = { version = "1", features = ["macros", "rt-multi-thread", "fs", "process", "signal"] } toml = "0.8" urlencoding = "2.1.2" repro-env-0.4.0/LICENSE000064400000000000000000001045061046102023000125550ustar 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. {one line to give the program's name and a brief idea of what it does.} Copyright (C) {year} {name of author} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: {project} Copyright (C) {year} {fullname} This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . repro-env-0.4.0/Makefile000064400000000000000000000004551046102023000132060ustar 00000000000000build: cargo run --release -- build -- make build2 sha256sum target/x86_64-unknown-linux-musl/release/repro-env build2: RUSTFLAGS="-C strip=symbols" \ cargo build --target x86_64-unknown-linux-musl --release docs: docs/repro-env.1 docs/%: docs/%.scd scdoc < $^ > $@ .PHONY: build build2 docs repro-env-0.4.0/README.md000064400000000000000000000177671046102023000130430ustar 00000000000000# repro-env Imagine you had a tool that takes a config like this: ```toml # repro-env.toml [container] image = "rust:1-alpine3.18" ``` and turns it into something like this: ```toml # repro-env.lock [container] image = "rust@sha256:22760a18d52be83a74f5df8b190b8e9baa1e6ce7d9bda40630acc8ba5328a2fd" ``` You commit both into your git repository to document: - **repro-env.toml**: which container image tag you intend to follow (think `Cargo.toml`) - **repro-env.lock**: which specific image you use for your release build (think `Cargo.lock`) The .lock file is auto-generated and can be refreshed with a simple command: ``` repro-env update ``` The build is executed in a user-namespace with **podman** (make sure it's installed), the current directory is mounted to `/build/` and a given command is executed inside of that directory: ``` repro-env build -- cargo build ``` We want to distribute our binary without having to worry about system libraries, so we ask cargo to create static binaries (also enable release optimizations): ``` repro-env build -- cargo build --release --target x86_64-unknown-linux-musl ``` This way we also ensure a different build folder is used (`target/x86_64-unknown-linux-musl` instead of `target/`) so our normal development doesn't interfere. The final executable is available at this location: ``` ./target/x86_64-unknown-linux-musl/release/repro-env --help ``` ## Download - [repro-env x86_64 statically linked](https://github.com/kpcyrd/repro-env/releases/download/v0.3.2/repro-env) (sha256: `660995089d32178a63763cf47e1b97e265ef5cf24bf646d16728ca51bf2fab50`) [![](https://repology.org/badge/vertical-allrepos/repro-env.svg)](https://repology.org/project/repro-env/versions) With github actions: ```yaml - name: Install repro-env run: | wget 'https://github.com/kpcyrd/repro-env/releases/download/v0.3.2/repro-env' echo '660995089d32178a63763cf47e1b97e265ef5cf24bf646d16728ca51bf2fab50 repro-env' | sha256sum -c - sudo install -m755 repro-env -t /usr/bin ``` | Package integration | Status | Archive infrastructure | | -------------------------------------- | ------ | ---------------------- | | [Arch Linux](#packages-arch-linux) | ✅ Fully supported, no known issues | ✅ Superb, operated by Arch Linux | | [Debian](#packages-debian) | ✅ No known issues | ⚠️ Snapshot service is frequently slow or unavailable | | [Alpine Linux](#packages-alpine-linux) | ✅ No known issues | ❌ No public archive, links are likely to become 404 | ## Packages: Arch Linux Arch Linux hosts a comprehensive collection of recent compilers at https://archive.archlinux.org. You can create a `[packages]` section in your **repro-env.toml** with `system = "archlinux"` to install additional packages with pacman. ```toml # repro-env.toml [container] image = "docker.io/library/archlinux" [packages] system = "archlinux" dependencies = ["rust-musl", "lua"] ``` The resolved **repro-env.lock** is going to contain the sha256 of the resolved container image you use as a base, and a list of `[[package]]` that should be installed/upgraded inside of the container before starting the build. ```toml # repro-env.lock [container] image = "docker.io/library/archlinux@sha256:6568d3f1f278827a4a7d8537f80c2ae36982829a0c6bccff4cec081774025472" # [...] [[package]] name = "rust" version = "1:1.69.0-3" system = "archlinux" url = "https://archive.archlinux.org/packages/r/rust/rust-1%3A1.69.0-3-x86_64.pkg.tar.zst" sha256 = "b8eb31a2eb80efab27bb68beab80436ed3e1d235a217c3e24ba973936c95839e" signature = "iIsEABYIADMWIQQGaHodnU+rCLUP2Ss7lKgOUKR3xwUCZExVKBUcaGVmdGlnQGFyY2hsaW51eC5vcmcACgkQO5SoDlCkd8fQkAD6AudRi2qP3WxSn38OOkSRSITciqRevPaVJgrz03JUBEAA/12h9z8dReD07Lqnltx9QTa3Cxppbv7VpJlTCQuavoMG" [[package]] name = "rust-musl" version = "1:1.69.0-3" system = "archlinux" url = "https://archive.archlinux.org/packages/r/rust-musl/rust-musl-1%3A1.69.0-3-x86_64.pkg.tar.zst" sha256 = "5a4854cdac8312dbf72fb87795bcc36bfb34e9218944966e5ac2e62319bbcf22" signature = "iIsEABYIADMWIQQGaHodnU+rCLUP2Ss7lKgOUKR3xwUCZExVKRUcaGVmdGlnQGFyY2hsaW51eC5vcmcACgkQO5SoDlCkd8cCMQD/W59RkOVPZDXlnmyY27jW61GC86hXOkSLOKa7XMQtpBoBALSugCkG1clSo/EQDbnuS+UY3268HNBvz6mF6i/hhEsB" ``` ## Packages: Debian Debian is a widely accepted choice and hosts an archive of all their packages at https://snapshot.debian.org/. You can create a `[packages]` section in your **repro-env.toml** with `system = "debian"` to install additional packages with apt-get. ```toml # repro-env.toml [container] image = "debian:bookworm" [packages] system = "debian" dependencies = ["gcc", "libc6-dev"] ``` Note this only works with **official** debian packages (not ubuntu). The resolved **repro-env.lock** is going to contain the sha256 of the resolved container image you use as a base, and a list of `[[package]]` that should be installed/upgraded inside of the container before starting the build. ```toml # repro-env.lock [container] image = "debian@sha256:3d868b5eb908155f3784317b3dda2941df87bbbbaa4608f84881de66d9bb297b" [[package]] name = "binutils" version = "2.40-2" system = "debian" url = "https://snapshot.debian.org/archive/debian/20230115T211934Z/pool/main/b/binutils/binutils_2.40-2_amd64.deb" sha256 = "83c3e20b53e1fbd84d764c3ba27d26a0376e361ae5d7fb37120196934dd87424" [[package]] name = "binutils-common" version = "2.40-2" system = "debian" url = "https://snapshot.debian.org/archive/debian/20230115T211934Z/pool/main/b/binutils/binutils-common_2.40-2_amd64.deb" sha256 = "ab314134f43a0891a48f69a9bc33d825da748fa5e0ba2bebb7a5c491b026f1a0" # [...] ``` ## Packages: Alpine Linux Alpine is very popular in the container world, based on musl libc and has a wide selection of compilers in recent versions. You can create a `[packages]` section in your **repro-env.toml** with `system = "alpine"` to install additional packages with apk. Unfortunately there's currently no public archive of old Alpine packages, you should keep this in mind because your repro-env build environments **are likely to become uninstallable!** ```toml # repro-env.toml [container] image = "docker.io/library/alpine" [packages] system = "alpine" dependencies = ["gcc", "make", "musl-dev"] ``` The resolved **repro-env.lock** is going to contain the sha256 of the resolved container image you use as a base, and a list of `[[package]]` that should be installed/upgraded inside of the container before starting the build. ```toml # repro-env.lock [container] image = "docker.io/library/alpine@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978" [[package]] name = "binutils" version = "2.40-r7" system = "alpine" url = "https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/binutils-2.40-r7.apk" sha256 = "6b1bf117b8f0a15862b27ff77a412eaccf2e7d8048a9cc0e3903e44930547c80" [[package]] name = "busybox" version = "1.36.1-r4" system = "alpine" url = "https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/busybox-1.36.1-r4.apk" sha256 = "abccb59dd5b9e64b782bbfd97b08c79a2214cc53567fb334aa003815505a007f" # [...] ``` ## Bootstrapping There are no inherent bootstrapping challenges, you can use any recent Rust compiler to build a working **repro-env** binary. This binary can then setup any other build environment (including it's own) and is able to build a bit-for-bit identical copy of the official release binaries hosted on github. ## Reproducible Builds All [pre-compiled binaries](https://github.com/kpcyrd/repro-env/releases) can be reproduced from source code: ```sh % wget https://github.com/kpcyrd/repro-env/releases/download/v0.3.2/repro-env [...] % sha256sum repro-env 660995089d32178a63763cf47e1b97e265ef5cf24bf646d16728ca51bf2fab50 repro-env ``` Since the build environment is fully documented and tracked in git all we need is checkout the corresponding git tag and run `make`: ```sh % git clone https://github.com/kpcyrd/repro-env % cd repro-env % git checkout v0.3.2 % make % sha256sum target/x86_64-unknown-linux-musl/release/repro-env 660995089d32178a63763cf47e1b97e265ef5cf24bf646d16728ca51bf2fab50 target/x86_64-unknown-linux-musl/release/repro-env ``` ## License `GPL-3.0-or-later` repro-env-0.4.0/docs/repro-env.1.scd000064400000000000000000000061031046102023000152410ustar 00000000000000REPRO-ENV(1) # NAME repro-env - Dependency lockfiles for reproducible build environments # SYNOPSIS *repro-env* update *repro-env* build -- [_COMMAND_] # DESCRIPTION Tracks a description of a desired state in *repro-env.toml*, for example, the latest version of some official container image, with the latest patch level and the latest version of some additional packages. It also tracks a resolved variant in *repro-env.lock* that tracks the specific versions and checksums of the packages needed to set up the described environment (at the patch-level available at the time of writing). The purpose of *repro-env.toml* is to make it trivial to re-resolve the specification if new patches become available. This file is read by *repro-env update*. The purpose of *repro-env.lock* is to document which compiler versions have been used for the release binary associated with a given release. Recording this information is essential for reproducible builds and allows future forensic investigation of the build environment. It can be either committed into the source-code repository or attached to a release as an artifact, along with the compiled binary. This file is read by *repro-env build*. # GLOBAL OPTIONS *-v*, *--verbose* Increase logging output (can be used multiple times) *-C* _path_, *--context* _path_ Change the current directory to this path before executing the subcommand # UPDATE This command resolves the environment described in *repro-env.toml* with the latest available updates and writes a *repro-env.lock*. You would use this command similar to how you would use *cargo update*. *--no-pull* Do not attempt to pull the container tag from registry before resolving it *-k*, *--keep* Do not delete the build container, wait for ctrl-c # BUILD This command loads a *repro-env.lock*, sets up the environment it describes in a container and mounts the current directory to */build* inside of the container. It then runs the given _COMMAND_ inside of this container. *-f* _path_, --file _path_ The dependency lockfile to use *-k*, *--keep* Do not delete the build container, wait for ctrl-c *-e* _env_, **--env** _env_ Pass environment variables into the build container (FOO=bar or just FOO to lookup the value) # PACKAGES: ARCH LINUX Arch Linux hosts a comprehensive collection of recent compilers at https://archive.archlinux.org. You can create a *[packages]* section in your *repro-env.toml* with *system = "archlinux"* to install additional packages with pacman. ``` # repro-env.toml [container] image = "docker.io/library/archlinux" [packages] system = "archlinux" dependencies = ["rust-musl", "lua"] ``` # PACKAGES: DEBIAN Debian is a widely accepted choice and hosts an archive of all their packages at https://snapshot.debian.org/. You can create a *[packages]* section in your *repro-env.toml* with *system = "debian"* to install additional packages with apt-get. ``` # repro-env.toml [container] image = "debian:bookworm" [packages] system = "debian" dependencies = ["gcc", "libc6-dev"] ``` # AUTHORS repro-env is developed on github at https://github.com/kpcyrd/repro-env repro-env-0.4.0/flake.lock000064400000000000000000000074131046102023000135030ustar 00000000000000{ "nodes": { "fenix": { "inputs": { "nixpkgs": "nixpkgs", "rust-analyzer-src": "rust-analyzer-src" }, "locked": { "lastModified": 1708150887, "narHash": "sha256-lyEaeShLZqQtFO+ULLfxF9fYaYpTal0Ck1B+iKYBOMs=", "owner": "nix-community", "repo": "fenix", "rev": "761431323e30846bae160e15682cfa687c200606", "type": "github" }, "original": { "owner": "nix-community", "repo": "fenix", "type": "github" } }, "flake-utils": { "inputs": { "systems": "systems" }, "locked": { "lastModified": 1705309234, "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", "owner": "numtide", "repo": "flake-utils", "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "naersk": { "inputs": { "nixpkgs": "nixpkgs_2" }, "locked": { "lastModified": 1698420672, "narHash": "sha256-/TdeHMPRjjdJub7p7+w55vyABrsJlt5QkznPYy55vKA=", "owner": "nix-community", "repo": "naersk", "rev": "aeb58d5e8faead8980a807c840232697982d47b9", "type": "github" }, "original": { "owner": "nix-community", "repo": "naersk", "type": "github" } }, "nixpkgs": { "locked": { "lastModified": 1707956935, "narHash": "sha256-ZL2TrjVsiFNKOYwYQozpbvQSwvtV/3Me7Zwhmdsfyu4=", "owner": "nixos", "repo": "nixpkgs", "rev": "a4d4fe8c5002202493e87ec8dbc91335ff55552c", "type": "github" }, "original": { "owner": "nixos", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } }, "nixpkgs_2": { "locked": { "lastModified": 1708151420, "narHash": "sha256-MGT/4aGCWQPQiu6COqJdCj9kSpLPiShgbwpbC38YXC8=", "owner": "NixOS", "repo": "nixpkgs", "rev": "6e2f00c83911461438301db0dba5281197fe4b3a", "type": "github" }, "original": { "id": "nixpkgs", "type": "indirect" } }, "nixpkgs_3": { "locked": { "lastModified": 1708151420, "narHash": "sha256-MGT/4aGCWQPQiu6COqJdCj9kSpLPiShgbwpbC38YXC8=", "owner": "NixOS", "repo": "nixpkgs", "rev": "6e2f00c83911461438301db0dba5281197fe4b3a", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } }, "root": { "inputs": { "fenix": "fenix", "flake-utils": "flake-utils", "naersk": "naersk", "nixpkgs": "nixpkgs_3" } }, "rust-analyzer-src": { "flake": false, "locked": { "lastModified": 1708018577, "narHash": "sha256-B75VUqKvQeIqAUnYw4bGjY3xxrCqzRBJHLbmD0MAWEw=", "owner": "rust-lang", "repo": "rust-analyzer", "rev": "b9b0d29b8e69b02457cfabe20c4c69cdb45f3cc5", "type": "github" }, "original": { "owner": "rust-lang", "ref": "nightly", "repo": "rust-analyzer", "type": "github" } }, "systems": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } } }, "root": "root", "version": 7 } repro-env-0.4.0/flake.nix000064400000000000000000000020371046102023000133460ustar 00000000000000{ inputs = { fenix.url = "github:nix-community/fenix"; flake-utils.url = "github:numtide/flake-utils"; naersk.url = "github:nix-community/naersk"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; outputs = { self, fenix, flake-utils, naersk, nixpkgs }: flake-utils.lib.eachDefaultSystem ( system: let pkgs = (import nixpkgs) { inherit system; }; toolchain = with fenix.packages.${system}; combine [ stable.rustc stable.cargo targets.x86_64-unknown-linux-musl.stable.rust-std ]; naersk' = naersk.lib.${system}.override { cargo = toolchain; rustc = toolchain; }; in rec { defaultPackage = naersk'.buildPackage { src = ./.; nativeBuildInputs = with pkgs; [ pkgsStatic.stdenv.cc ]; CARGO_BUILD_TARGET = "x86_64-unknown-linux-musl"; CARGO_BUILD_RUSTFLAGS = "-C target-feature=+crt-static -C strip=symbols"; }; } ); } repro-env-0.4.0/repro-env.lock000064400000000000000000001026061046102023000143360ustar 00000000000000[container] image = "docker.io/library/archlinux@sha256:fed6efe803e79d94544f93607e4afec1056cfd9bee5744c965eec0944624d81f" [[package]] name = "acl" version = "2.3.2-1" system = "archlinux" url = "https://archive.archlinux.org/packages/a/acl/acl-2.3.2-1-x86_64.pkg.tar.zst" sha256 = "cbfb71e8ba9aca9e51cbdfd77d0ec51371eb865a9a098c77e2c6046962e6ae0a" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZbDRHwAKCRBtQr3RFuAGj1SLAQDrW2DQoMIQQyppVmB4+Cf7Yo3MVTSmDXYY535JzgL7NAD+L7Rxu5IVPxdyrXCT+U67Cl7CW+x++2NITct+wr68wA4=" [[package]] name = "archlinux-keyring" version = "20240208-1" system = "archlinux" url = "https://archive.archlinux.org/packages/a/archlinux-keyring/archlinux-keyring-20240208-1-any.pkg.tar.zst" sha256 = "ab89bddb157ca99da61322c6b09a1fd256203f38cd9a717ec43ea9791a68d06e" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZcU7FAAKCRBtQr3RFuAGj4Y4AQCKsihdyJWyNGBwQ9Kd5AmenehuvR4xfFOCjIOndQCYhwD+NFzEjbwraHHVtEjQh4HtrnZPc0JplQvM5zRT3gDCawE=" [[package]] name = "attr" version = "2.5.2-1" system = "archlinux" url = "https://archive.archlinux.org/packages/a/attr/attr-2.5.2-1-x86_64.pkg.tar.zst" sha256 = "83bcd58b066492f1242be41fa3f5750586d9eb7d8424a776e9fd6a8c5a496948" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZaP21gAKCRBtQr3RFuAGj8y5AQCaOUvsIghysJkhZlU797Dz815O1cWX0YNQeSBCn6QE0AD/a3Z4/1GcW2JezglbL9v0rNE7mNytLrQBP7yNqENCnAo=" [[package]] name = "audit" version = "4.0-1" system = "archlinux" url = "https://archive.archlinux.org/packages/a/audit/audit-4.0-1-x86_64.pkg.tar.zst" sha256 = "b6053ecf5258d37797d3f96bbf33c4e99c8c8ce820181851832bfa2b6984c847" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZae5xQAKCRCbeih9mi7GCNiFAQCIIpveBTKisAY6z3mnMkiZTM0PI+fZtIA/Bx4pAHd8hwEAniAX0gwbvTrjrvS8BspADkq8ciUKLjn/rkHynLWFzQI=" [[package]] name = "bash" version = "5.2.026-2" system = "archlinux" url = "https://archive.archlinux.org/packages/b/bash/bash-5.2.026-2-x86_64.pkg.tar.zst" sha256 = "37cba20b05b899dcbe2e565b1c20b7cfc6411ffcb014b977edb2d8afbc3a530b" signature = "iQEzBAABCAAdFiEEW34/txt/EDKaHAOrdx32Yn7faB8FAmWmYGMACgkQdx32Yn7faB96uQf+M+IDUL6Fn3xjHFvnR7bFoLSp+nHTmFc5thBAaDtY64qTiWsN81nEUzEdDf5aEcgw0nEduh7Nx6HTfndVd++kL+tY6mZk5xuZLqux8cp9TGP/2jcp15wzeNWE1Z0d9T7vh6BOgmjZA5ksmqyFERBgBGpOQIdaDuXZbGehDTMaOK4qLkztW27iRj5mBwnptbdDBlAHm62K0EgjqJdgxMhq0WUPtTO6EhCBl187IQTIcOocUL0WQvLW8332nq9OVcDb2VU8LN2CQ6Ng19Gi61VmVNbRIBYyxbNDFONglGUTfDI9y58VxM2GKP/NSK886s5LL91ebLWnUtasbYvQHqX8EA==" [[package]] name = "binutils" version = "2.42-2" system = "archlinux" url = "https://archive.archlinux.org/packages/b/binutils/binutils-2.42-2-x86_64.pkg.tar.zst" sha256 = "1c942079c0a7c9d7e441413ae2d0547c80f21611793308b2cb11d6e779300ba5" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZb0dSl8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCqnuAQDeoC3YK42KIKW6tYEAsXsVnJQz8eMfzh3ShQPyahMyLQEApIFZ8+KX+CI1lUtQ8owp8VwiwvOGKOHhpXIKLRfd0QU=" [[package]] name = "ca-certificates-mozilla" version = "3.98-1" system = "archlinux" url = "https://archive.archlinux.org/packages/c/ca-certificates-mozilla/ca-certificates-mozilla-3.98-1-x86_64.pkg.tar.zst" sha256 = "4937c3dc970b05df511db300476bb79efb191c0d021df577999e29f03d9edc59" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZdDp7gAKCRC4rAhgDxCM3zvgAP9kYVYjvIRU0z1SnM5BoKyTSRb7/8nTEW2yiWScR+4/jAEA1m7gqrrFOSKT7DiavB1qkEidRjZMNgnNopAwAGeFdg4=" [[package]] name = "coreutils" version = "9.4-3" system = "archlinux" url = "https://archive.archlinux.org/packages/c/coreutils/coreutils-9.4-3-x86_64.pkg.tar.zst" sha256 = "d30a8112f802a642309d9c9b556f1d990e8f34d4573bace1f49e7bfcddb7a25c" signature = "iQEzBAABCAAdFiEEW34/txt/EDKaHAOrdx32Yn7faB8FAmWzRd4ACgkQdx32Yn7faB9BmQgAxCAO8MQ0NRwB1Y0oGGOtc9fS0emZEVjaKOcNcYo2QSnerTyD3ueM5Vspa3Cpiaibzx6KBKXDG9fKVQCnIyudJ3pCVNXHSVAatYrhHEO1NiXOnaBZ1ITNr4SXrCX1AiN4mm8MP8LT1zeSVBcq1AG5KNNB+0pehXrnFrH4drevH8YFb9qBvLok+/HWcBBCtey1Ovl4SHjeBcwML2Tqk5ojHd08w7BDL77aoo/wPtiGsCxAIHmYJZ4zNVtyrDvyFKoWjoWLNaS1HqDx9aehmRLqG+kZBs8W3gRRzSRrMfAh857SXWlkuBCyh5IntJdhfmVb/npRhx7IFeoT6sdosnMQIQ==" [[package]] name = "cryptsetup" version = "2.7.0-1" system = "archlinux" url = "https://archive.archlinux.org/packages/c/cryptsetup/cryptsetup-2.7.0-1-x86_64.pkg.tar.zst" sha256 = "13d468f44d80e95ce3c8737f05a7b8e71bb616443b0c99d96a0ba34fd73c8ef0" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZbDp7QAKCRBtQr3RFuAGj82+AP9cmxRiYl1BC1QXcZBc8fzJE11vh0v9LG6YgCwUN3vHvgD/QT9I8Zmhf2UTbR/txjtryDt/KRjKY5L2Dl2klKREmAg=" [[package]] name = "curl" version = "8.6.0-3" system = "archlinux" url = "https://archive.archlinux.org/packages/c/curl/curl-8.6.0-3-x86_64.pkg.tar.zst" sha256 = "9f0d6ec7398f117a2ca9f4e65f3be34ef2e90d6a29b877323fff2b804299dddc" signature = "iHUEABYKAB0WIQQhkbiUMbrAqLlt6T0kR0DRfH/Q7AUCZcIsAQAKCRAkR0DRfH/Q7BWaAP0ShA30aTgHDoJU2bnM10HoLRIa64HYFSKhMo99eA44mAD/WMGrC47wJ/wpxkkV2Za6XaWdpHzJzaj5Im88UcTcTAQ=" [[package]] name = "dbus" version = "1.14.10-2" system = "archlinux" url = "https://archive.archlinux.org/packages/d/dbus/dbus-1.14.10-2-x86_64.pkg.tar.zst" sha256 = "28b519535496a8c8b7885fb2d4c089ca98e34250dfc468aad2267c639026f219" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZZgthAAKCRC4rAhgDxCM3yhuAPwMUdKUvYRn37eie+795AQm31mtvDnHaTUVCkGkU9DDiAD/dAY42tVWk6wFxr+oGZ/LLD5LGcSSV1ch4bp4VsE7yw4=" [[package]] name = "dbus-broker" version = "35-2" system = "archlinux" url = "https://archive.archlinux.org/packages/d/dbus-broker/dbus-broker-35-2-x86_64.pkg.tar.zst" sha256 = "0437260541a6e36aa15b6602aabf2e50b4c6a8d2a03e82bd34e948dfdf053cb8" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZZgtjAAKCRC4rAhgDxCM3wG2AP9yyHf10ErfW5U50ZwkrtONeY2dDXZ0xApxqDW1vzcnTQEA8g0M82MrVAFe/jXLPGw2GPdAc6RLZarDiJQAgCuDvg0=" [[package]] name = "dbus-broker-units" version = "35-2" system = "archlinux" url = "https://archive.archlinux.org/packages/d/dbus-broker-units/dbus-broker-units-35-2-x86_64.pkg.tar.zst" sha256 = "0d7810c68f3313651a647bdd025615608d1063dec923fb13aea3fc081b216cfa" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZZgtjQAKCRC4rAhgDxCM36QyAQCMZ5KKMmM+FC2bZYbGp1eUOMQz0GH+v0xFtPNsxGjVtgD/XQ8bPvUmXvGMWHg70vjDbdr9jO8Trg3/zLVhIkhBHQU=" [[package]] name = "device-mapper" version = "2.03.23-1" system = "archlinux" url = "https://archive.archlinux.org/packages/d/device-mapper/device-mapper-2.03.23-1-x86_64.pkg.tar.zst" sha256 = "4e3028f09f9dd9d9f9509246b54996dcb0a3dff52091fd975718ad48dc76a723" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZZ6EPAAKCRBtQr3RFuAGj/sSAQCFuPLhgKRJJf6uCOMt+/xraxiZqN3oV04HfO2OETRxkQEAz/6gtU/CnvhBtdkNwBZDnR7TswPbOWrNlbmpW4uWfAA=" [[package]] name = "expat" version = "2.6.0-1" system = "archlinux" url = "https://archive.archlinux.org/packages/e/expat/expat-2.6.0-1-x86_64.pkg.tar.zst" sha256 = "7b3849401eb8fa4f64ce084ad6548b912bd458a322b999db7874e84d4333e839" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZcJq/wAKCRCbeih9mi7GCMQIAQCXbalj3wyYVRBKuq+cNYqMvk/m6JgLIZWluyQ5y8hPeQD/REXGBYMxN0OTsEt0LYeXFvsz51kQfoZkS+uebGFn8w0=" [[package]] name = "filesystem" version = "2024.01.19-1" system = "archlinux" url = "https://archive.archlinux.org/packages/f/filesystem/filesystem-2024.01.19-1-any.pkg.tar.zst" sha256 = "92acb9922b055aa126977b41b9c52830f1bc1b1325c85c7bdeecec9d51790daa" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZaqt+QAKCRCbeih9mi7GCA5rAP9+Ntsl/q/3MfU0iC+EYhKh3bANBhJzkBa1CTb4OwqyvgD+OJLjYGdLqHXIKTO0X4Nr51FFOzN9RucjmbVi0ht1HgE=" [[package]] name = "gc" version = "8.2.6-1" system = "archlinux" url = "https://archive.archlinux.org/packages/g/gc/gc-8.2.6-1-x86_64.pkg.tar.zst" sha256 = "6210a1e7e00d3162f175f9ab318a3da928495210b1ea411dcb66bf5e1f382daf" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZb9oiF8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCmQdAP0fleaFihboUqrAdlMxvO5OUJiXXxLtimhQj2e3rD9L3gEA0YzMCzi4GS6GlV1pa/hZ68bPL2gYz2goni9/aLXhMwY=" [[package]] name = "gcc" version = "13.2.1-5" system = "archlinux" url = "https://archive.archlinux.org/packages/g/gcc/gcc-13.2.1-5-x86_64.pkg.tar.zst" sha256 = "da9cf53f129d394ed5fcc1151f46810656d2f12082ad9f03807b33ab0ec3337f" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZb0dUF8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCkDrAQCRw8jPku1thJTB6zDnre4gG87T/kGHorsF4KSSA1+FBwEArh8AbHf35QP8MkpEjAKz9cGyLQrE0RNoe2LM9tiawAI=" [[package]] name = "gcc-libs" version = "13.2.1-5" system = "archlinux" url = "https://archive.archlinux.org/packages/g/gcc-libs/gcc-libs-13.2.1-5-x86_64.pkg.tar.zst" sha256 = "767928ccc25339f48fc958aba1876e46e1e4571017658cf8b12a1264eeaa76cc" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZb0dUV8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCiHwAQD9kTeLQ5MMBkMXqYhz8dtNyfLD2QO25Ly5AFhsT5b5gwEA5KfJdIGyPRjNMSu4GikDwF5iRR1YPf92elDVCApG9gE=" [[package]] name = "glib2" version = "2.78.4-1" system = "archlinux" url = "https://archive.archlinux.org/packages/g/glib2/glib2-2.78.4-1-x86_64.pkg.tar.zst" sha256 = "56cb2f1e7ede5029e3bda848e881c168bb6dff1310a8b36c50efd6f50fd6dff7" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZa2hEgAKCRC4rAhgDxCM3ycJAP0SvejkZ8XW4ouS9RXXf0a8F0R0kz6efIHO8r5lRuWXigD/b33SAeGSO2stNqV4kDrYIlOy/jt2XdW2sqdfKb7v4w8=" [[package]] name = "glibc" version = "2.39-1" system = "archlinux" url = "https://archive.archlinux.org/packages/g/glibc/glibc-2.39-1-x86_64.pkg.tar.zst" sha256 = "17ff75d9476c690f50911a6c23d844ffc760471ae5e8e69b6a1dcde86113332a" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZb0dOV8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCm+YAQD/jbtrL97YGLeB/HRYH6Z6tWSa0Q9puJnOVc/9JsyAIQEAzOC/178zEnbUH7U8QTLFcqaQ/EfyBZXNieTbRdaUVwU=" [[package]] name = "gnupg" version = "2.4.4-1" system = "archlinux" url = "https://archive.archlinux.org/packages/g/gnupg/gnupg-2.4.4-1-x86_64.pkg.tar.zst" sha256 = "a05a5f13afe83a4b819dcfa10be0fa38bc6b34f2c8bce9c692f042658aaca2b8" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZbJ2pQAKCRCbeih9mi7GCPmjAP0R8XmowpkF/SfHGdPl+z+yvZvCh20/4HA+Om//0PJmvgD+IFbQhVXTM/2/RLyiNwcT3onMA053rfzX5OxZG4vV/QY=" [[package]] name = "gnutls" version = "3.8.3-1" system = "archlinux" url = "https://archive.archlinux.org/packages/g/gnutls/gnutls-3.8.3-1-x86_64.pkg.tar.zst" sha256 = "c0cc35c822ec474d8f7f79715679de16b840410cc5b706c785a980f1aba19347" signature = "iQEzBAABCgAdFiEErcih/MFeAdRTEEGelGV6sg8qCSsFAmWmkskACgkQlGV6sg8qCSs/lAgAmLzked/OytHHKhZa+0+hOrAUadG6V/beDMYxOtaYFvJug6GXEJ1fZRv+mDuyaROor87S9HsTP9yCQLUf5DCXFgHSKsYYICZlHMkKx8Z1Em8alqh1C5Qg04wXxyU/NQw90/89Vj9dWIPJOL2QLnF9fT4LdUFqMtLne4RH7N/eisdjE7cwyA0GLs86kg1KaRE4pGj3RZ+z4nBfyBAQVzFsUg+qQ88ez3lMasajhAyTgR8jO5biIdSWAm7xB2TfNTBDofSRaXYM2mlFxZQ2y0XMOfcw4vnH4BI9N9txwhxlVBpFHIIOQKPrFk5T6kHC2BKkwTPpdtlTWs0whkMcazqwOQ==" [[package]] name = "guile" version = "3.0.9-1" system = "archlinux" url = "https://archive.archlinux.org/packages/g/guile/guile-3.0.9-1-x86_64.pkg.tar.zst" sha256 = "1c17a7b5c3c9c6ca580c76b36080603587bd2dc39a2c3cb0f07d755da05126ab" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCY9Gy3F8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCt5aAQDMcoBQsIEeLWacejGD+7TLT6F3Nu1Q3KDaNAZojqkwmQEAsvIVi/edva/VSJY9fHvmrcdV7jJrRjqglpWinxuWPQI=" [[package]] name = "hwdata" version = "0.379-1" system = "archlinux" url = "https://archive.archlinux.org/packages/h/hwdata/hwdata-0.379-1-any.pkg.tar.zst" sha256 = "46475b6e0118cc1bbb85ef10c738a0cc0b2ef604545d7a667f5178fc8eee1dfe" signature = "iQEzBAABCAAdFiEEW34/txt/EDKaHAOrdx32Yn7faB8FAmXDHi8ACgkQdx32Yn7faB8dwQf/QwKG6EndZn6b5Y/zp3sK9l/rifxSMDpe3UiqWcgwiW9c0tgLd9UkK2MZZ70OatFNi1Ab4rtm+SDoqk3/tA+Sde7g7T41O+aS+CfH+wg9i+OW3jc1r+t/6SFobANwwXGkFVGQ7uOQK2PgBkgSfBYOupn9PtHP6hMGyHn+CT3CcJ/PE+097Jfp25TZt/8SRj8QMjUW/H5Pg5/LAGOPrTWItAuyEP16SZ03wmJ8LxEahhi5Y00fhO1jIsCBqJpO3h0cYH1IaUXHvrtvMddB9sBsK7VWzloJqDuHDTIEGr1516oIGDHIa8KZSDFiqjvvWGZceSF538pGVA2pwvDsAG+99A==" [[package]] name = "iana-etc" version = "20231228-1" system = "archlinux" url = "https://archive.archlinux.org/packages/i/iana-etc/iana-etc-20231228-1-any.pkg.tar.zst" sha256 = "09422bdacba423fa325525d1cf0889ccbc41bd1df8c761fb7491a9dba760d11e" signature = "iQEzBAABCgAdFiEE5JnHn1PJalTlcv7hwGCGM3xQdz4FAmWVNLIACgkQwGCGM3xQdz7HmwgAqqQjYpRNB3iDYraEmeLgQ/hpR4Y7eheQA93evGWUA5u/ynaxf5HKc1M0HRrp4bJF/VNCzUvdffEFAiLlXUxr+f6XC82CF87wpDGdCS/mRmD6seqDdyfKcwuPAvROA0xsLPhxMmtqPW+jl3woqx814hFuqCAliHEViwAdCsXDj6JjuX+M14mwXACygItfklfm5ku+HZZDpCzf+uJsu6IUM4vyDeTF8rVCsFAdDHAr36C1rbtD0MKsEkq8Cq9pkR89KjwKWodOLNJrwIROUxUaWHWOTjSyC2mpKCTvxoKvLubbcOLJ2q3n5Pnd9tJMUDTPyxFWKicNNCuzhrJUWo2m7Q==" [[package]] name = "iproute2" version = "6.7.0-1" system = "archlinux" url = "https://archive.archlinux.org/packages/i/iproute2/iproute2-6.7.0-1-x86_64.pkg.tar.zst" sha256 = "a706f8617181999a79d2fb7cfbdfe09f3b911fdc6042d01e0b2f8c7bbac4ce88" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZZxdxgAKCRBtQr3RFuAGj9WUAP9LYUP8JoIE2dMEwnlLDfkvXYjFoeWF3OCOPRMfwqBo7gEA0mo/E9dthTOUB20KSfpAvu0AXifl3IJ3jop3T7aYrQY=" [[package]] name = "iputils" version = "20240117-1" system = "archlinux" url = "https://archive.archlinux.org/packages/i/iputils/iputils-20240117-1-x86_64.pkg.tar.zst" sha256 = "28904f567a37deececbf61545e8587488e4422920578221dcd5bdff0314b0c53" signature = "iQEzBAABCAAdFiEEW34/txt/EDKaHAOrdx32Yn7faB8FAmWov8gACgkQdx32Yn7faB/KOAgAxSg6ASQtyMyo4bIsb5jTR7vbD1vLsebWO259O+dfFLntHviIRH6+dO1jH9z5Lv/impzN/L2b2HtfPBt98Czg357rs7c3dcU9qQUw+/QydKEcj438rT+yz+fBU+ySxs+XPNt5zHVpn0/6LTKu87JvhQftHcl5OjKOlgIpteNSRbGKFdjdyFE7Erb1zf7niH6eMtUnKQXuMLRFyUn52tNgu8gtTLKUdMYGay84m0zk7/u8pfRLGw0EIvGvtfvNdvgP2/q7W0Vy/Gmuw7eZV38OGs6J/WtVzbXwLBq+h+xH7JDKfA2TGEiwPeGL/wNQHOTDevBoli7EiS1or4bYwgJH4g==" [[package]] name = "jansson" version = "2.14-2" system = "archlinux" url = "https://archive.archlinux.org/packages/j/jansson/jansson-2.14-2-x86_64.pkg.tar.zst" sha256 = "de45a1cfa23faf16681b9809c4dd375549268b19dd37fe23f96ef8717ac35095" signature = "iQEzBAABCAAdFiEEFRnVq6Zb9vwrc8dWek52CV2KUuQFAmJyQS8ACgkQek52CV2KUuSqUwf9H9g/0lroLE8fHR7G3Dcy4OILPGZPkt5HOiJBYdnhi0eWJyetHRCSFsMWiZk9HUJHoVbZH28Z3F75UQfI3cWAThSz1HzUMGvEWF/uTpOKENiwY4egQ0pA88eX6kvTt0BuCLA6JZso6VBz2kzYue4uV/B6otdStx6wf6AfDAIha1jWTButBv/pxpAcTJOp157S4Y+NO59NSn672iTm9CQxWcSSo6Bxfimu86kjceXTj/HK+aZ1onjnD7jtOjsrQOBO63thwouju8yNyD/yjeXzOw5KgsZ4c7gu0Wg10MlcM79G2EYXWFbq5/ARxBkEd49fYhDWaPriGz8bO9ri41vGUw==" [[package]] name = "libedit" version = "20230828_3.1-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libedit/libedit-20230828_3.1-1-x86_64.pkg.tar.zst" sha256 = "e41d9f9d4787ecdf58e451e63b5f74dd17854d5065011f8d094994b9fd458b8c" signature = "iQEzBAABCAAdFiEEFRnVq6Zb9vwrc8dWek52CV2KUuQFAmTwa38ACgkQek52CV2KUuTLWwf+OHcEEwEzr6+rbSMmIvuyxuYZ656pvt42P2cgGIHdlGRJEYNJtOnP3hKcD8shJzgSRNNSxHxe3385088pcSWdBd1X8aSxa2iBFrT09iAdfh7IgZE/doQmuXKuFP+sN+T0o+vTlS2QPFFymS7hax7miiThrZvzxZsxCRhbXsxf3/bW+9Z+/E/Zkk+dFR5Oj3aPLbgyNtyfCon8eyPmXg4vGgWUCowms14kiO8WT4OA5RE3UYBhnRpO5DOoIfbshoUqcXh9/3QMJoveiBdaQmbkGARSORivYednCk6kenMlEzS0ej01lqvgz4PMdZ+xPYQSe3YYebqFr55Z6+iipGjE8g==" [[package]] name = "libelf" version = "0.190-2" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libelf/libelf-0.190-2-x86_64.pkg.tar.zst" sha256 = "71e8bbbacd8bd3d061793f1f8025a742002aefb4b262b3e934ab8727a72e64b5" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZb07FV8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCkSyAQDTHP/Xp76yHfbJ2K1BCM0KytI6vEnPx/5yrw2IvgILggEApETLAmjdu8hmhYeXI5ZWcBCCcjSwMTEUhsrLlGeqsQU=" [[package]] name = "libffi" version = "3.4.6-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libffi/libffi-3.4.6-1-x86_64.pkg.tar.zst" sha256 = "8b8404043b2f1e2f460071f3c64a5c6b86d0e1042b3ced1a4d808d114dc790e3" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZdIiEAAKCRCbeih9mi7GCN27AP9lx+UsDY1utguc0P/zd4CiFlyi75hNQAsQQO64IzYEOgEAv2eR63ni8Hn9+h+MZf1C5D+t/TWF1XJ5FrAVutW1XQY=" [[package]] name = "libidn2" version = "2.3.7-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libidn2/libidn2-2.3.7-1-x86_64.pkg.tar.zst" sha256 = "390e3a494f38bfa3d2f59fb1eb33f69cc7477f96caa27e4a635c523e13389700" signature = "iQEzBAABCAAdFiEEhs/8qRjPOvRxR1iAUeixSKmZnDQFAmW08ioACgkQUeixSKmZnDRUzgf+KLhTkMYfzpzxVAvFrDQf1BQIcKQaDUiCQXr3X++2XJnctXgCA2yyWTks1c5YrEucKtG1A953wpyoTKfyfO6qCZw/VXsJMc3TfVrGA0JsXyHAxrp1vzEwXp9+ZOd0ZcOiktkWdcsSgAADxtGN60jA/WR+Eq7AX8caaphFvRIdZuZ5LvSv6l4fc0Foans61BAnt1yooDu0pbBNVas8uViVoMUS4a7JMisAwmAk7DpueXn24B7cJeAlgLAHKQUN6m515wLyN92dNkV0Xr+fBETrYAbBG2YzKqHOKBxLp7YybmjzsTFsBYeLWLijX74oZVuI7Gt7oVLc4B5Vhef/mgHGow==" [[package]] name = "libisl" version = "0.26-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libisl/libisl-0.26-1-x86_64.pkg.tar.zst" sha256 = "b6f495748d9c877c15e47e9691e09d86139cd234e1990a97c531d8d8c9f993b3" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZCq2IV8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCkzKAQCFNdVbwWwjQ8+Ba+iGYklKxxlcAJoUXYPsy1OChLCUpwD+KsxGh2JyiO1aP5WOmsDBRXhqNB07z3dNBVwNL6GwNww=" [[package]] name = "libmpc" version = "1.3.1-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libmpc/libmpc-1.3.1-1-x86_64.pkg.tar.zst" sha256 = "a83324a476cae86887aa3e3811b2e72c31471a81be0254e379c244e2df531c1b" signature = "iQEzBAABCAAdFiEEFRnVq6Zb9vwrc8dWek52CV2KUuQFAmOfE/EACgkQek52CV2KUuRNEwf6AkQRJ6MKo3+8qZ5DoL1AUfEbRy332+0DbmhqVAZAVR6SDYwr8yTYc5L9zWtRYA++Nh0zah4P6o3XXJISOfLLpQHGPI1jZ/1IGTJlCt0yo+KU891YfQQO95TCAa77oT9Njkxr6imF0vP5kR3PA5sEvqD0iCu69s0TQu2uzsVqigNmbWU3LVv47BrF1T+C31Oa6cRWmjDUtn2ls/jYn+BPvuCO9TyH/3d2lQ1CCM+H1cCDcxzBSmaYSVQUbM6x8YAdFKDZKEbwuiCGTwKIV5ZRar4UiiBdeuJzF0vSy51VdcZpvf30HU8VuJ2Q+mv5OfyHjt/HBCkEyn1b+XufIqb0Xg==" [[package]] name = "libnghttp2" version = "1.59.0-2" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libnghttp2/libnghttp2-1.59.0-2-x86_64.pkg.tar.zst" sha256 = "a156f5d393a9c06b64d0865ead3e00e913689ca1e66165331f6407343c20d9e5" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZbn/GAAKCRBtQr3RFuAGj2fwAP0YCFVJyROzvV9KYZBoWyaNhjfMi5Xg1eFdybVHimo2pwEA3SH5haSspEa9iyxbBynWYf4P61+ejpprW+pTPulElQ4=" [[package]] name = "libnghttp3" version = "1.2.0-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libnghttp3/libnghttp3-1.2.0-1-x86_64.pkg.tar.zst" sha256 = "bc29e7da0df88d5f58256e373f42b1a531a7a70c4d366524e608760c79bc8043" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZdCcMgAKCRBtQr3RFuAGj3LiAQDk3hW9TEm6vNVBPa3SNiBqwQkIfmOwGGH8hvbiM7VkwgEA8ONPTgSeByKwnOwNFsQ6/JAUzH5n0c0ozOK3reqwCg0=" [[package]] name = "libseccomp" version = "2.5.5-2" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libseccomp/libseccomp-2.5.5-2-x86_64.pkg.tar.zst" sha256 = "a431e4bcd1b93cdd41fd6e4542166a514a19f22512d66e6735c44cbf25383e0f" signature = "iQEzBAABCAAdFiEEFRnVq6Zb9vwrc8dWek52CV2KUuQFAmWa5hAACgkQek52CV2KUuSLkggAgtCFSMy9Xlj4/NtmYr2VVRC2fC3gISok3ysJB8PsQdz211ZlqDZe1GNLL8piY8fPz7dzzgWW1Tmb1v3jIWT7RPxabMDtz2jTJDAk0X65eF6F0Oz+LughrIe6sRgoWG4AbvY59ZQ2v4ECa7DE3TluVG0UYiVLzsPcsOzunj+M0Ymp9E6XmWrZAjIPE4zyuvOA8kd6iNRCjYE7TJ8r4ijfooXVWS558J6F7AIHPqd2RW/LOmP3qS15q1WUodIP/3dNguRklyVOhvgF8/jAkybDreN29A5wXGfVn6/pba24qiYITCV2cu7O/Nad3GNBeCgJyHxtD9PYTNxQ1PDqdCoipQ==" [[package]] name = "libsecret" version = "0.21.3-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libsecret/libsecret-0.21.3-1-x86_64.pkg.tar.zst" sha256 = "daaf72bcb5046ec4ec514543888a94734e449aa8203dff053acdc2acae321748" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZcQR/gAKCRC4rAhgDxCM38KCAP9Kg0eUSsS+trJAnVwNn3m7j9CvtwzPfGneBoQ/mK4DNgEA4nnCXJaNI8meg1q+laqTFd7kDgbieT3yKOAkQFYSlAM=" [[package]] name = "libsysprof-capture" version = "45.2-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libsysprof-capture/libsysprof-capture-45.2-1-x86_64.pkg.tar.zst" sha256 = "83a59eb806491f69e1d9002628d1c9ceab28ad938ed66e575fd6515187ce1b87" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZcQRywAKCRC4rAhgDxCM30BCAP4sgZcGbmLTC0hrCoWKvYsKuPr89KzkdlLW3Q6PHwrhYAEAr/T+qBga6JCYcdrRy+7ZRtY6qZ4bzLPHP9If9Qkh2wk=" [[package]] name = "libusb" version = "1.0.27-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libusb/libusb-1.0.27-1-x86_64.pkg.tar.zst" sha256 = "20de2735edf774b3273520e784a714b9edd2d45abcbd245443d7ef58910d2fc8" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZbthNwAKCRCbeih9mi7GCMJ9AQCO0tMaDwsY8fjW82Yp7SaFomKiNeCqqAnIo9PYsrgoFwD+M3WQbB6oL3PIdPj1ZmGia6A7nj0uH2eP3RmvKFNIeQc=" [[package]] name = "libxml2" version = "2.12.5-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/libxml2/libxml2-2.12.5-1-x86_64.pkg.tar.zst" sha256 = "afa961ff3a726fb1e9609096ced43a38b855a464ca763f2354cf2bcd10b49d7a" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZb+bKwAKCRC4rAhgDxCM33H6AP9PnQDdHsKUs4/PslkHF0GUcS4xxbeV61xVbWLfaTJt1AEAxApfED2KOfnGftgbBWJ8jE0UNVXdjGHeqpc03/DHCgk=" [[package]] name = "licenses" version = "20240206-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/licenses/licenses-20240206-1-any.pkg.tar.zst" sha256 = "5790d1f6074dd4690fbc9cc68dbb498d4369c1ef6f0419135e64374e2328b5a7" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZcIbAQAKCRCbeih9mi7GCJzGAQDf2+5qzQqtCD4re9zsP+9LRThNxM/ZIt2nZNNAzV4rmgD9EMcP3QA/kQEqc5ceG6hrkMFbrRgWIzMqF9ooyHFSEQw=" [[package]] name = "linux-api-headers" version = "6.7-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/linux-api-headers/linux-api-headers-6.7-1-any.pkg.tar.zst" sha256 = "e794502033db416930499a53c21d09614e6518a31adc8cf06896d4fc66dd6e61" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZbrE+F8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCi2GAP9GimLjEi7qZk6flBJwAhzlb/FyI7yE990onvueFBjdpAEA8ebjOgjNMN0tCuJLhZ/LE33opKV4uAA/Hw1x3wknego=" [[package]] name = "llvm-libs" version = "16.0.6-1" system = "archlinux" url = "https://archive.archlinux.org/packages/l/llvm-libs/llvm-libs-16.0.6-1-x86_64.pkg.tar.zst" sha256 = "156a44aa81be475fec8bcb96f6a5b68a1b3e9d27304caf03f79386565679bf75" signature = "iQEzBAABCAAdFiEEhs/8qRjPOvRxR1iAUeixSKmZnDQFAmTfjB0ACgkQUeixSKmZnDQFBAf+IXPoe66l3tJD8buJN6S8oynw01J7OcqyhESgkZ6V56hBHjbbWNAhe0e6B30FABZWAXUveihA8yr8kuJJhpalDjfrEPG5rZ69ugpGlhmBhVF58Ao1RtYWBy3khhGjAnN8fC4g0JTYDUB5zkqbxN6f7k/WHQbeZQUvl+DPlpmuXL1hILBSiPzKd6FooYAVLq0yOfXmMvq8OpW7QTlRcvYErdNc1eCnvKBqvs4+JfIkPdFW3L3MUMR7SF/qddc03ti9eRXfXw6HCgfYU+j1nB1nZcOaGwZHNV+mAaFQsb7Y194BZ18LFNvatYP4D4dpAXdsFyvp5ACWo1szuxa1hQEs+w==" [[package]] name = "lz4" version = "1:1.9.4-2" system = "archlinux" url = "https://archive.archlinux.org/packages/l/lz4/lz4-1:1.9.4-2-x86_64.pkg.tar.zst" sha256 = "f0c925a71ca02019e54b90deee10a84e6b97661115f6bf005a0c5fb553973fb0" signature = "iQIzBAABCAAdFiEEj8FaBklQqZ3RvRTdOeS4d+YuuRUFAmWJfNwACgkQOeS4d+YuuRXrrRAAtx3ZQC/tX00UzypT7MYAnR3JI4AO3UCay24lWFcrDjn/FC6qftP3Letc/t1jzTLBxKCp5kETFQ5OTznn78tC1IHee/tYZTNmZHeNm0sfhQ/cYjFwqu8plp/xerYPPou6tFNeVCCvxWTTYsUgKGlJRn9S69qteNJY4pfJEWDA5QRgWjGYuWGoP1W1q+AHXy9h1MPMTVj6/5mWCBA5eo2qMof37iKkFspdcVza8VSF/HDG3OUU+xsPz6IroGT0SaA81pzmSJmyhIGouqzDKO2PG9RfnaI83PcM+WGl/5Np7tpUy9M5bQTanCRXWC92cMSPaE2PyQSNNNzKF9LAifH1QKel6At36fCOeuxnfZ107VTXoFmfS802pGuAyy0sQfbpuVemy87B0INwKvtnhEeh3MbfC1GdV/VO/876nGQbTEBv+SkC5Uj+7vUKBoM4XM+AmI49GMPj1pcS9qfC8YdVsJeGit6Ow7DMZdzIs9Ex9O1CJNjqYPRV8a0/TvEyVckrXz31DUeT3ckLz7P+pcwTP1atuiQmcxeQeJwjvsRkH+zvc75aOB72f/RqYgz2Xea1g1MCzXKuMrAvinJvCWinu7kzCEGv0lIyaLNXQdoRX0udVep6kkT1ovLhVBOmHOcL8XJxhLQoN74SEQ76uRiYsEcMTtvJ35cHjtMqwbX3B3Q=" [[package]] name = "make" version = "4.4.1-2" system = "archlinux" url = "https://archive.archlinux.org/packages/m/make/make-4.4.1-2-x86_64.pkg.tar.zst" sha256 = "7c1bc0d882f7c8d1bcb305eb7efaabc19ed6afa5a9a443575fa0d5ed57985535" signature = "iHUEABYKAB0WIQSZH24/B2XPYpWIhYYTmwnaW/DTOAUCZBT0lQAKCRATmwnaW/DTOKwJAP9/kfT3rO0NhbD8wuI6ajzjyKtrl4SfuU0yu/PKByXQOgD/aYSvsyXylJhCadU2smO4LbP2Vj9fnIvEwPvbXbesVQ0=" [[package]] name = "mpfr" version = "4.2.1-2" system = "archlinux" url = "https://archive.archlinux.org/packages/m/mpfr/mpfr-4.2.1-2-x86_64.pkg.tar.zst" sha256 = "b70034ca018bc39d84672550c680480dc34bd4c7f36e90aff71b19bb1c3e904c" signature = "iNQEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZb06MV8UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCo/2AQC5VykV4goSdvPJaAa0gmVxd3AnHWCRqLWQYs07l0N4RAD3V7aWxsy4VrRQrXx/W4edKvbc0mhoj6jP9QsX3PUNDw==" [[package]] name = "musl" version = "1.2.4-1" system = "archlinux" url = "https://archive.archlinux.org/packages/m/musl/musl-1.2.4-1-x86_64.pkg.tar.zst" sha256 = "f585ddabdfde5a29b88193827ccc597f74feb878723da9ce813d882c956e19b0" signature = "iQJLBAABCAA1FiEEiee5MxxK59f699MFwTIpOVS75K0FAmRRZ5gXHHNwdXB5a2luQGFyY2hsaW51eC5vcmcACgkQwTIpOVS75K1VGhAAwoRqJgoycDFQInlZtrXoreYRhFdIJhknGCtsAWgGvYY5CDrEXQwUR3zHpYahzka6CbAv8aZdL67CIZELQ55f22xFyAIyeBLGl21QsI/A3Isom9+IVrOOsIc1+Z5LNp1LTZkAPiK1j06NWkaRpzL6NaFeUf2ziq8q/3lDfXaalyTmy6hV29ZMp8Gsa0gcsCtremCNJXVRwOB5/Hs9a0YJwOheNHuqEc6Md08N5rrE+HkTxMJB62FZn9ta1UqpejnvLBr5Q5yNKFsDuc67ZY6AIBlS/x2iyPDidvzbULj+5fs+4wllkK0svUCUHcKjBjFazCMX+bzS80EymuyzB4dkPxAxJ2/RVsXvFkhquKzAcFEOyZ/CiJiaRfeTZHzcmA1u6tjcl2wopc886wJgX08YqJrlXNQ5jbgo3jkHCUWlVYau7IF9pb+cekgPX6ut+n4ZzZUbaP0yahmzZq5gPsdHf0uKQoVjgxxGhWz6mrllpy/EeKVks0bj/fiHE9Czn0naLoaO5Y5ww25lg3DrAW3GfgTepRW0aXEoecDM9izGkw8D+BqUyV79z7qE5El/ndymyL8dOxzIFIMNFJePzg2E/Av7inXMV3H6gFs6Tw/LmbzQVi/RRO6k4Bill3Md9udh+0waEa70Gs9n2dxNN4C8R1ubeA2yDzQim0ua8caOmT0=" [[package]] name = "openssl" version = "3.2.1-1" system = "archlinux" url = "https://archive.archlinux.org/packages/o/openssl/openssl-3.2.1-1-x86_64.pkg.tar.zst" sha256 = "7d9b3f47b08877ff5e67f8a9a3eec80bdbab776891de9df604b3484e441d3bd3" signature = "iHUEABYKAB0WIQQ+gMoai4n2nLpX2Yp2pe+QVESaXAUCZbk6dwAKCRB2pe+QVESaXL5fAP0fDONeGV93d+lEjDQPCfcPS5X9j6OVO0z1HWsvXv/7KwEAjBTy7bXiMW7UGirj41C0jxwomuJ7XBMMxhhsze71jwA=" [[package]] name = "pacman" version = "6.0.2-9" system = "archlinux" url = "https://archive.archlinux.org/packages/p/pacman/pacman-6.0.2-9-x86_64.pkg.tar.zst" sha256 = "eb66d80c33c4079ec5ab2642823baaf63e4af871806d4b2117ea68d292dd4098" signature = "iQJLBAABCgA1FiEEwQA0ZnZjToDJQPuenAL/QZ/svhYFAmXChMMXHGZveGJvcm9uQGFyY2hsaW51eC5vcmcACgkQnAL/QZ/svhYHcQ//V3USo9aAAG/ziYAkU+Phbf3m14vNau8Togmc/Agpq2OrEy1uDBbAmA4gx3kB+ZgpKmXqh5ucr3H5nrgW9nFK9nDdGFEKPLx9tudaLZs04iWIfsa+yLn2up4lhLOTcKO0E4UNBAs3Km3eavLBPZak6p0WbXvQU3XwhGAqKDXi9rnFvb4t3SGfhpYPWrbixsc0ZGsehNEWG6CpL23EL3cVitRLnv8WouklQboRkUh05UcfzEFdLz+O7JwpKH/hbqyEhoSz1wVR9MLOttO2w3PiAv43nUdQgEL+BWt3OGI32KSzpBt19EE/RJ5V64uqO6GhqJJ5V5lEXxVw5mxtNgbtb9ETxoqfbL+All6Ji7Vas0/yOaJCLshTlUmkBoRikkNYn/2eJtRPFOUnWmrqUxGmHU+jCd3/TLWbQpD4z3tfRxBdaEUMOw2VgH4ylduMsVb6ky6mWCjJZKv2bvQpmu3miW1zZlmQ2bzAwCd/qgxdqJw4n+dUwnXwrtvQ2KRhVRHW68ewrg+gwgDXV8YvXJZf5Is6pPxhkxdxC1iE6bODQSG5cteXOndKDc6MK23J5V8Rcoi6fiCp0JYoMmd72FwiqsqM6VOS0bq2Y0Wpjk8p4Ld9LHZBFEvBte8WPWMlcorY4jHr/E/761aNtgalhyrbP5BunN8deIaCcIZ1T57h8Og=" [[package]] name = "pam" version = "1.6.0-4" system = "archlinux" url = "https://archive.archlinux.org/packages/p/pam/pam-1.6.0-4-x86_64.pkg.tar.zst" sha256 = "0bea9c1c0d4e19c5a3663f32eed32bca7f177379a5e572209771012668563d78" signature = "iQEzBAABCAAdFiEEW34/txt/EDKaHAOrdx32Yn7faB8FAmXNH8gACgkQdx32Yn7faB9NcAf/eL0bZlYF1rLzY4Z8VTUXGzbLtqlIkhDaIoa6aJgZtguzmUswU+N2M4zHOHV5ayrsOlTXTOsOV2p+GpSDVplZHw1Lf0dKISXtjNCDcLNoXrK+mFdl3KV5Wl7Vxd5wuSFqpRfnkQVlE7G3ExBHRid+d7zuKd24eJATufr5noLNxhqxo2vgPXSW1WUvjuec1gIn/2FlyS3TpVn2CqaZugD2vFt29kjX1hDujWdzfgOCMl0e705AnmEi1P4a8aImvrzPAPX1GWl7zhvcV7ejQL2jNB7ewC42ziPWgPbVRIupoOs0mZustCVxXT+4oO/1N3frjWVu1tLvZ4X9Y4XG/4ILeA==" [[package]] name = "readline" version = "8.2.010-1" system = "archlinux" url = "https://archive.archlinux.org/packages/r/readline/readline-8.2.010-1-x86_64.pkg.tar.zst" sha256 = "1aa9e757e6ed0d53b0391e49d7b018e8158b5f7efcffe51e34444f59adf24561" signature = "iQEzBAABCAAdFiEEW34/txt/EDKaHAOrdx32Yn7faB8FAmWmYFcACgkQdx32Yn7faB+ksggAmDrjRugAKlneLj9XANvF3eNe23BAsvjPxINOknt1fhDucCfKC2DZ+frsJHuPMc8ymFJ53aZ0QVY7Rn7xr54goewn13fHAlsmo2YE6O4HrixIoPotYyRchSuRPYjOs1Y91NCJYIAmSrwD5BurvJQ0F3jSFnkYIgjtutmhZ+9mQN/LLPfjdcS8s5sfZCDCwwFZ39muaRtTBGrfLO8RFKi73J1uAg4jK5smU8zMeLqyb+Pb64hsxSHftdreWIhzz6Y7Q3sGgCEWOSiEO/3DS/dcq0vSyXYs/1tlu2BhZFCKG1mJfNd4J9dTBIYJwXnagdei7O+klQPjeO8XXNuU8ZuIUg==" [[package]] name = "rust" version = "1:1.76.0-1" system = "archlinux" url = "https://archive.archlinux.org/packages/r/rust/rust-1:1.76.0-1-x86_64.pkg.tar.zst" sha256 = "151767bd7f31b5c6f96b9dd353267f895b62c39b94a059694a3520f40fcab14a" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZcUcpAAKCRC4rAhgDxCM3zGxAQCq9vdxnkKAob9fqW6koQrvaL33gbXyuthJsTwIs5WPaQD/ctvr94UZUf0LdwKdcOlq54C3/b+MjZ12Hc87bpplGwc=" [[package]] name = "rust-musl" version = "1:1.76.0-1" system = "archlinux" url = "https://archive.archlinux.org/packages/r/rust-musl/rust-musl-1:1.76.0-1-x86_64.pkg.tar.zst" sha256 = "2747f857ae8146f0fb0bc7edb4b532f217c24b0edee5404e04cde5adf9996e03" signature = "iHUEABYKAB0WIQSDvIiJNRtd67toQW64rAhgDxCM3wUCZcUcpQAKCRC4rAhgDxCM36QEAQDLnSeFCk3nbWjwOIho0yaNj4JsqAYwvvTpsatCPJtkDwEApNhvRoEKTL25v1kG68VtsLKgqJbNR5KmCC/aADLuxwA=" [[package]] name = "shadow" version = "4.14.5-1" system = "archlinux" url = "https://archive.archlinux.org/packages/s/shadow/shadow-4.14.5-1-x86_64.pkg.tar.zst" sha256 = "aca654ca2e47414839003f74432ad4f58565d25811d61abf3b02c6b89629b69a" signature = "iHUEABYKAB0WIQRizHP4hOUpV7L92IObeih9mi7GCAUCZdB7XAAKCRCbeih9mi7GCPk0AQCnaLgiH+FSrguyr/DwZ5tjbKrksfYFmqqYwzBirsSWsgD+NF4QYIA3hxYgKhHvL/GTj8P5rdyIfYG7edCEox6jcgM=" [[package]] name = "sqlite" version = "3.45.1-1" system = "archlinux" url = "https://archive.archlinux.org/packages/s/sqlite/sqlite-3.45.1-1-x86_64.pkg.tar.zst" sha256 = "7e0b5282f3d225eece235c0fc0fe75b912d14c8e8fbd23eb7004e6403cfd3421" signature = "iQEyBAABCAAdFiEErcih/MFeAdRTEEGelGV6sg8qCSsFAmW5ZokACgkQlGV6sg8qCSt/9wf49BUq4zJ/+9Dy7ZxXmpwzZdt0uyf4y9Utrh6655NmzEhPGhC58AGUBblC3BCWgHSqf994YMdO6G5ncmkMrRfSBH0cV4V6n9R3A5DwfJO6AtVFINOFEXfDWfig8ji46NjoTFW+H2RnQ5yD+2VMX8rjmby8baG9mh1YWr4vBrU0/aAHctm19gzr3zT+VC6FqxXJ9xT2tRqwHPMHlevp6GehkfL0SknpOFBWVc+6vq2t0REOnr7fCvCuHBGC+7cyFOv00Q0Xj49Gxrg06F9fil6DCpJA55NH40KkeDxYQ9dWsxm2XHQouWHHiidfMg0GybzRnjaV6oWfjildFAOsaewm" [[package]] name = "systemd" version = "255.3-1" system = "archlinux" url = "https://archive.archlinux.org/packages/s/systemd/systemd-255.3-1-x86_64.pkg.tar.zst" sha256 = "b0d2f2bbd63a230f3d709644df80a65571a04b3426aa8b98cda048f573272c1e" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZbEv/wAKCRBtQr3RFuAGjyu0AQCU/ZGcfhUtkjGL1OGeY6Z6miVTYVycILXdMYQN5UaqjAD+NVQHiAL7JPb6DPngkula/ZPPKhCSCqKeMaonAqzcjQY=" [[package]] name = "systemd-libs" version = "255.3-1" system = "archlinux" url = "https://archive.archlinux.org/packages/s/systemd-libs/systemd-libs-255.3-1-x86_64.pkg.tar.zst" sha256 = "395e5a73bc6ca942cc276b881cb2b89b6502107f03d6c2537ac6325795816446" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZbEv/wAKCRBtQr3RFuAGjxd5AQD+3Rztb0/y2mWBvCR9uiEkZOdzw9DoywNZxYGbCEodygD+P/X+nV7+lwrtyg55d9NQ7LnbIIJ7PrzpYRIE0JrjYw4=" [[package]] name = "systemd-sysvcompat" version = "255.3-1" system = "archlinux" url = "https://archive.archlinux.org/packages/s/systemd-sysvcompat/systemd-sysvcompat-255.3-1-x86_64.pkg.tar.zst" sha256 = "8ca0303b6eb190d119dfc842394f35a3b0b15a193bf8c76156a3350248e19c88" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZbEv/wAKCRBtQr3RFuAGj7ZFAP4oKIrS/RTazBlx0NvPFzq1v0vzXHW16rPRece6I+LmIgD/Z0ToZmxKNkWqmxndOUMTUcwTS2IhNqc0bDZGlQ9+PQg=" [[package]] name = "tzdata" version = "2024a-1" system = "archlinux" url = "https://archive.archlinux.org/packages/t/tzdata/tzdata-2024a-1-x86_64.pkg.tar.zst" sha256 = "195d4fe70842df237e3859fdd7ef6b50ced72a80a4fc500e5c2ffee19758e517" signature = "iQEzBAABCgAdFiEErcih/MFeAdRTEEGelGV6sg8qCSsFAmW8f1YACgkQlGV6sg8qCSstFwf/QcYvQ/3Cva5UPD8yU5Zrn6JYf9yLDKoz0fbdtuOiBq96z/29a6bLm2Bwg1PFAqxy6xDtrRb/PvzUkIOlYIwJEM4KY5R318N/GkcijAg0+utPBTAIyCz7l2MWuUVzkdUfajBSCCLIXTW5YKzpmDeXeVsuRS7Tzy88OBLYXQ3D9nkvTySSJybhPucbewCZKgE8ZCLEnDUMvNdLat9DH021VbrRL50r9/AatbN85e9Epr+unUnBKP7vUknB8a3Q2u/PnKzXU8p4VS/kGUXwoPPgZJKQ7JywKBX114K8HK/5bWEcxr0aWOIJvu61bB6ocYsjdRLRDYb+a1e1+Bn4e6ssvQ==" [[package]] name = "xz" version = "5.4.6-1" system = "archlinux" url = "https://archive.archlinux.org/packages/x/xz/xz-5.4.6-1-x86_64.pkg.tar.zst" sha256 = "8362a5e440748420043c354d519d6ef44862985c9f57ab6f05db6967abdd4f9f" signature = "iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZbPH5AAKCRBtQr3RFuAGj4ggAQCQ2hIwc30d4UScmrIHjea9vwEXJDvarwqXggrZ6TLPQwEAiju2j9b1iOy/ZAdFogpy4Q20/VZO5HL5Yg+hZ/eAdQo=" [[package]] name = "zlib" version = "1:1.3.1-1" system = "archlinux" url = "https://archive.archlinux.org/packages/z/zlib/zlib-1:1.3.1-1-x86_64.pkg.tar.zst" sha256 = "a46c58aa1d1cb4a1def7aa27acf03db61e6a7f85ad0a3d8103f9463a453e2b02" signature = "iQIzBAABCgAdFiEE4kC1fixGMLp2ji8m/BtUfI2BcsgFAmWuxzUACgkQ/BtUfI2BcsjeAA/+J+swxWW2rbaFsIPnscCznxKTzsusvCpqAt1AGxqHvpWdGhx0H4TmsiYfLE0Z4hcV/jESBcgcGk9XH7wO+67Om7UokBvaw7NZqNtVa/bQoiFSvdP/kM+x8xdVXVzBAgAihHXX8Al0X+uI5ID4TzShGAhTI69Dz5GwAtclxstJr2T1hGv5vkUtJ1pCe4aR5aEZ4sZcKxwmXrkhvACKHHjHKOi0eto55NWP6ueEezFksdSgNcZ94Bex2O34xYpssSwmEYEPRU3g6AGRDuAUPoIKZMGqfnGf5x6u6PyYOcXcpt9GTBcPbDYYcfGOnfKokbyaBZT7eR8AID/Vxx9aOV5dsybpxYDAkwkidQGO9/iJC8Tz848zS84be7PsxYvrxcDsbLAiT2eWgn9eQpVk6vt9/J0xfDBWitpIgEXw0hNaisSUJhXqy7zHGu+XqIS082X/K1h6B67YXgOWPhhLyRJ2QI/8B77trN2d31XZRVPylboX4q5eZvT2kWm5h+7VUwvsT5MAuFtOTy46XkMqZ5WYiRhpnOOL484IQOgaYSN15CSPQPphGLEuybdQSxwFhGy9/rXYU73CNmvR5hsewx9c7nT17NWLUuQcIJhdZMqLPclnTtrAMaKp8EwUbbD+lcBQC993h7L2pXYjgJSQ3gulUIqROTGcGE4OiVkLb+5LQqY=" repro-env-0.4.0/repro-env.toml000064400000000000000000000002001046102023000143440ustar 00000000000000[container] image = "docker.io/library/archlinux" [packages] system = "archlinux" dependencies = ["make", "musl", "rust-musl"] repro-env-0.4.0/src/args.rs000064400000000000000000000066521046102023000136440ustar 00000000000000use crate::errors::*; use crate::lockfile::Lockfile; use crate::manifest::Manifest; use clap::{ArgAction, CommandFactory, Parser, Subcommand}; use clap_complete::Shell; use std::collections::HashSet; use std::env; use std::io; use std::path::Path; use std::path::PathBuf; #[derive(Debug, Parser)] #[command(version)] pub struct Args { /// Increase logging output (can be used multiple times) #[arg(short, long, global = true, action(ArgAction::Count))] pub verbose: u8, /// Change the current directory to this path before executing the subcommand #[arg(short = 'C', long)] pub context: Option, #[command(subcommand)] pub subcommand: SubCommand, } #[derive(Debug, Subcommand)] pub enum SubCommand { Build(Build), Update(Update), Fetch(Fetch), Completions(Completions), } /// Run a build in a reproducible environment #[derive(Debug, Parser)] pub struct Build { /// The dependency lockfile to use #[arg(short, long)] pub file: Option, /// Do not delete the build container, wait for ctrl-c #[arg(short, long)] pub keep: bool, /// Pass environment variables into the build container (FOO=bar or just FOO to lookup the value) #[arg(short, long)] pub env: Vec, /// The command to execute inside the build container #[arg(required = true)] pub cmd: Vec, } impl Build { pub fn validate(&self) -> Result<()> { let mut env_keys = HashSet::new(); for env in &self.env { let key = if let Some((key, _value)) = env.split_once('=') { key } else if env::var(env).is_ok() { env } else { bail!("Referenced environment variables does not exist: {env:?}"); }; if !env_keys.insert(key) { bail!("Can not set environment multiple times: {key:?}"); } } Ok(()) } pub async fn load_files(&self) -> Result<(Option, Lockfile)> { let path = self.file.as_deref().unwrap_or(Path::new("repro-env.lock")); let lockfile = Lockfile::read_from_file(path).await?; let manifest = if self.file.is_none() { Some(Manifest::read_from_file("repro-env.toml").await?) } else { None }; Ok((manifest, lockfile)) } } /// Update all dependencies of the reproducible environment #[derive(Debug, Parser)] pub struct Update { /// Do not attempt to pull the container tag from registry before resolving it #[arg(long)] pub no_pull: bool, /// Do not delete the build container, wait for ctrl-c #[arg(short, long)] pub keep: bool, } /// Fetch dependencies into the local cache #[derive(Debug, Parser)] pub struct Fetch { /// The dependency lockfile to use #[arg(short, long)] pub file: Option, /// Do not attempt to pull the container tag from registry #[arg(long)] pub no_pull: bool, } /// Generate shell completions #[derive(Debug, Parser)] pub struct Completions { pub shell: Shell, } impl Completions { pub fn generate(&self, mut w: W) -> Result<()> { clap_complete::generate(self.shell, &mut Args::command(), "repro-env", &mut w); Ok(()) } } #[cfg(test)] mod tests { use super::*; #[test] fn test_zsh_completions() { Completions { shell: Shell::Zsh } .generate(io::sink()) .unwrap(); } } repro-env-0.4.0/src/build.rs000064400000000000000000000172741046102023000140110ustar 00000000000000use crate::args; use crate::container::{self, Container}; use crate::errors::*; use crate::fetch; use crate::lockfile::PackageLock; use crate::paths; use crate::pgp; use crate::pkgs::archlinux; use data_encoding::BASE64; use std::env; use std::path::Path; use std::time::Duration; use tempfile::TempDir; use time::format_description::well_known; use time::OffsetDateTime; use tokio::fs; #[derive(Debug, PartialEq, Default)] pub struct Install { alpine: Vec<(PackageLock, String)>, archlinux: Vec<(PackageLock, String)>, debian: Vec<(PackageLock, String)>, } impl Install { fn add_pkg(&mut self, pkg: PackageLock, filename: String) -> Result<()> { let list = match pkg.system.as_str() { "alpine" => &mut self.alpine, "archlinux" => &mut self.archlinux, "debian" => &mut self.debian, system => bail!("Unknown package system: {system:?}"), }; list.push((pkg, filename)); Ok(()) } } pub async fn setup_extra_folder(path: &Path, dependencies: Vec) -> Result { let pkgs_cache_dir = paths::pkgs_cache_dir()?; let mut install = Install::default(); for package in dependencies { // determine filename let url = package .url .parse::() .with_context(|| anyhow!("Failed to parse string as url: {:?}", package.url))?; let filename = url .path_segments() .context("Failed to get path from url")? .last() .context("Failed to find filename from url")?; if filename.is_empty() { bail!("Filename from url is empty"); } // setup /extra/ directory let source = pkgs_cache_dir.sha256_path(&package.sha256)?; let dest = path.join(filename); let dest_sig = path.join(filename.to_owned() + ".sig"); debug!("Trying to reflink {source:?} -> {dest:?}..."); if let Err(err) = clone_file::clone_file(&source, &dest) { debug!("Failed to reflink, trying traditional copy: {err:#}"); fs::copy(&source, &dest) .await .context("Failed to copy package from cache to temporary folder")?; } // setup extra data match package.system.as_str() { "alpine" => (), "archlinux" => { let base64 = package .signature .as_ref() .context("Package in dependency lockfile is missing signature")?; let signature = BASE64 .decode(base64.as_bytes()) .with_context(|| anyhow!("Failed to decode signature as base64: {base64:?}"))?; debug!( "Writing signature ({} bytes) to {dest_sig:?}...", signature.len() ); fs::write(dest_sig, signature).await?; } "debian" => (), system => bail!("Unknown package system: {system:?}"), } // verify pkg content matches pin metadata let pkg = fs::read(&dest).await?; fetch::verify_pin_metadata(&pkg, &package) .with_context(|| anyhow!("Failed to verify metadata for {filename:?}"))?; install.add_pkg(package, filename.to_string())?; } Ok(install) } pub async fn run_build( container: &Container, build: &args::Build, extra: Option<&(TempDir, Install)>, ) -> Result<()> { if let Some((_, install)) = extra { if !install.alpine.is_empty() { let mut cmd = vec![ "apk".to_string(), "add".to_string(), "--no-network".to_string(), "--".to_string(), ]; for (_, filename) in &install.alpine { cmd.push(format!("/extra/{filename}")); } info!("Installing dependencies..."); container.exec(&cmd, container::Exec::default()).await?; } if !install.archlinux.is_empty() { // determine verification timestamp and add it to gpg.conf let filename_iter = install.archlinux.iter().map(|(pkg, _)| pkg); if let Some(time) = pgp::find_max_signature_time(filename_iter)? { let time = time .checked_add(Duration::from_secs(1)) .with_context(|| anyhow!("Failed to increase time by 1 second {time:?}"))?; let datetime = OffsetDateTime::from(time).format(&well_known::Rfc3339)?; info!("Derived signature verification timestamp: {datetime:?}"); archlinux::set_pacman_verification_datetime(container, time).await?; } // prepare and execute the install command let mut cmd = vec![ "pacman".to_string(), "-U".to_string(), "--noconfirm".to_string(), "--".to_string(), ]; for (_, filename) in &install.archlinux { cmd.push(format!("/extra/{filename}")); } info!("Installing dependencies..."); container.exec(&cmd, container::Exec::default()).await?; } if !install.debian.is_empty() { let mut cmd = vec![ "apt-get".to_string(), "install".to_string(), "--".to_string(), ]; for (_, filename) in &install.debian { cmd.push(format!("/extra/{filename}")); } info!("Installing dependencies..."); container.exec(&cmd, container::Exec::default()).await?; } } info!("Running build..."); container .exec( &build.cmd, container::Exec { cwd: Some("/build"), env: &build.env, ..Default::default() }, ) .await?; Ok(()) } pub async fn build(build: &args::Build) -> Result<()> { container::test_for_unprivileged_userns_clone().await?; // ensure arguments make sense build.validate()?; // load lockfile let (manifest, lockfile) = build.load_files().await?; if let Some(manifest) = &manifest { if let Err(err) = manifest.satisfied_by(&lockfile) { warn!("Lockfile might be out-of-sync: {err:#}"); } } // mount current directory into container let pwd = env::current_dir()?; let pwd = pwd .into_os_string() .into_string() .map_err(|_| anyhow!("Failed to convert current path to utf-8"))?; let mut mounts = vec![(pwd, "/build".to_string())]; // ignore packages that are already present in the container let dependencies = lockfile .packages .into_iter() .filter(|p| !p.installed) .collect::>(); let extra = if !dependencies.is_empty() { fetch::download_dependencies(&dependencies).await?; let path = paths::repro_env_dir()?; let temp_dir = tempfile::Builder::new().prefix("env.").tempdir_in(path)?; let pkgs = setup_extra_folder(temp_dir.path(), dependencies).await?; let path = temp_dir .path() .to_owned() .into_os_string() .into_string() .map_err(|_| anyhow!("Failed to convert temporary path to utf-8"))?; mounts.push((path, "/extra".to_string())); Some((temp_dir, pkgs)) } else { None }; let container = Container::create( &lockfile.container.image, container::Config { mounts: &mounts, expose_fuse: false, }, ) .await?; container .run(run_build(&container, build, extra.as_ref()), build.keep) .await } repro-env-0.4.0/src/container.rs000064400000000000000000000306221046102023000146640ustar 00000000000000use crate::errors::*; use serde::{Deserialize, Serialize}; use std::ffi::OsStr; use std::fmt; use std::future::{self, Future}; use std::io::Read; use std::process::Stdio; use std::str::FromStr; use tokio::io::AsyncWriteExt; use tokio::process::Command; use tokio::signal; #[derive(Debug, PartialEq, Clone)] pub struct ImageRef { pub repo: String, pub tag: Option, pub digest: Option, } impl FromStr for ImageRef { type Err = Error; fn from_str(s: &str) -> Result { if let Some((repo, digest)) = s.split_once('@') { Ok(ImageRef { repo: repo.to_string(), tag: None, digest: Some(digest.to_string()), }) } else if let Some((repo, tag)) = s.split_once(':') { Ok(ImageRef { repo: repo.to_string(), tag: Some(tag.to_string()), digest: None, }) } else { Ok(ImageRef { repo: s.to_string(), tag: None, digest: None, }) } } } impl ToString for ImageRef { fn to_string(&self) -> String { let repo = &self.repo; if let Some(digest) = &self.digest { format!("{repo}@{digest}") } else if let Some(tag) = &self.tag { format!("{repo}:{tag}") } else { repo.to_string() } } } #[derive(Debug, Default)] pub struct ExecConfig { pub capture_stdout: bool, pub silence_stderr: bool, pub stdin: Option>, } pub async fn podman(args: I, config: &ExecConfig) -> Result> where I: IntoIterator, S: AsRef + fmt::Debug, { let mut cmd = Command::new("podman"); let args = args.into_iter().collect::>(); cmd.args(&args); if config.stdin.is_some() { cmd.stdin(Stdio::piped()); } if config.capture_stdout { cmd.stdout(Stdio::piped()); } if config.silence_stderr { cmd.stderr(Stdio::null()); } debug!("Spawning child process: podman {:?}", args); let mut child = cmd.spawn().context("Failed to execute podman binary")?; // write to stdin (if configured) if let Some(buf) = &config.stdin { if let Some(mut stdin) = child.stdin.take() { stdin.write_all(buf).await?; } } // wait for the process to exit let out = child.wait_with_output().await?; debug!("Podman command exited: {:?}", out.status); if !out.status.success() { bail!( "Podman command ({:?}) failed to execute: {:?}", args, out.status ); } Ok(out.stdout) } pub async fn pull(image: &str) -> Result<()> { podman(&["image", "pull", "--", image], &ExecConfig::default()).await?; Ok(()) } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct Image { pub digest: String, } pub async fn inspect(image: &str) -> Result { let inspect = podman( &["image", "inspect", "--", image], &ExecConfig { capture_stdout: true, silence_stderr: true, ..Default::default() }, ) .await?; let mut list = serde_json::from_slice::>(&inspect)?; debug!("Image inspect result: {list:?}"); let inspect = list .pop() .with_context(|| anyhow!("Could not find any matching image: {image:?}"))?; match list.len() { 0 => Ok(inspect), len => bail!( "The specified image is not canonical, inspect returned {}, expected 1", len + 1 ), } } #[derive(Debug)] pub struct Config<'a> { pub mounts: &'a [(String, String)], pub expose_fuse: bool, } #[derive(Debug, Default)] pub struct Exec<'a> { pub capture_stdout: bool, pub cwd: Option<&'a str>, pub user: Option<&'a str>, pub env: &'a [String], } #[derive(Debug)] pub struct Container { pub id: String, } impl Container { pub async fn create(image: &str, config: Config<'_>) -> Result { let mut podman_args = vec![ "container".to_string(), "run".to_string(), "--detach".to_string(), "--rm".to_string(), "--network=host".to_string(), "-v=/usr/bin/catatonit:/__:ro".to_string(), "--entrypoint=/__".to_string(), ]; for (src, dest) in config.mounts { podman_args.push(format!("-v={src}:{dest}")); } if config.expose_fuse { debug!("Mapping /dev/fuse into the container"); podman_args.push("--device=/dev/fuse".to_string()); } podman_args.extend(["--".to_string(), image.to_string(), "-P".to_string()]); debug!("Creating container..."); let mut out = podman( &podman_args, &ExecConfig { capture_stdout: true, ..Default::default() }, ) .await?; if let Some(idx) = memchr::memchr(b'\n', &out) { out.truncate(idx); } let id = String::from_utf8(out)?; Ok(Container { id }) } pub async fn exec(&self, args: I, options: Exec<'_>) -> Result> where I: IntoIterator, S: AsRef + fmt::Debug + Clone, { let args = args.into_iter().collect::>(); let mut a = vec!["container".to_string(), "exec".to_string()]; if let Some(cwd) = options.cwd { a.extend(["-w".to_string(), cwd.to_string()]); } if let Some(user) = options.user { a.extend(["-u".to_string(), user.to_string()]); } for env in options.env { a.extend(["-e".to_string(), env.to_string()]); } a.extend(["--".to_string(), self.id.to_string()]); a.extend(args.iter().map(|x| x.as_ref().to_string())); let buf = podman( &a, &ExecConfig { capture_stdout: options.capture_stdout, ..Default::default() }, ) .await .with_context(|| anyhow!("Failed to execute in container: {:?}", args))?; Ok(buf) } pub async fn tar(&self, path: &str) -> Result> { let a = vec![ "container".to_string(), "cp".to_string(), "--".to_string(), format!("{}:{}", self.id, path), "-".to_string(), ]; let buf = podman( &a, &ExecConfig { capture_stdout: true, ..Default::default() }, ) .await .with_context(|| anyhow!("Failed to read from container: {:?}", path))?; Ok(buf) } pub async fn cat(&self, path: &str) -> Result> { let buf = self.tar(path).await?; let mut tar = tar::Archive::new(&buf[..]); let mut entries = tar.entries()?; let entry = entries .next() .context("Tar archive generated by podman cp is empty")?; let mut entry = entry?; let entry_type = entry.header().entry_type(); if entry_type != tar::EntryType::Regular { bail!("Extracted file is not of type file: {entry_type:?}"); } let mut buf = Vec::new(); entry.read_to_end(&mut buf)?; Ok(buf) } pub async fn write_file(&self, directory: &str, filename: &str, content: &[u8]) -> Result<()> { // generate tar file let mut tar = tar::Builder::new(Vec::new()); let mut header = tar::Header::new_gnu(); header.set_size(content.len() as u64); header.set_mode(0o640); debug!( "Adding to archive: {:?} ({} bytes)", filename, content.len() ); tar.append_data(&mut header, filename, content)?; let buf = tar.into_inner()?; // pass archive into container let a = vec![ "container".to_string(), "cp".to_string(), "--".to_string(), "-".to_string(), format!("{}:{}", self.id, directory), ]; podman( &a, &ExecConfig { stdin: Some(buf), ..Default::default() }, ) .await .with_context(|| { anyhow!("Failed to write container (directory={directory:?}, filename={filename:?}") })?; Ok(()) } pub async fn kill(&self) -> Result<()> { podman( &["container", "kill", &self.id], &ExecConfig { capture_stdout: true, ..Default::default() }, ) .await .context("Failed to remove container")?; Ok(()) } pub async fn run>>(&self, fut: F, keep: bool) -> Result<()> { let fut = async { fut.await?; if keep { info!("Keeping container around until ^C..."); future::pending().await } else { Ok(()) } }; let result = tokio::select! { result = fut => result, _ = signal::ctrl_c() => Err(anyhow!("Ctrl-c received")), }; debug!("Removing container..."); if let Err(err) = self.kill().await { warn!("Failed to kill container {:?}: {:#}", self.id, err); } debug!("Container cleanup complete"); result } } #[cfg(target_os = "linux")] pub fn test_userns_clone() -> Result<()> { use nix::sched::CloneFlags; use nix::sys::wait::{WaitPidFlag, WaitStatus}; let cb = Box::new(|| 0); let stack = &mut [0; 1024]; let flags = CloneFlags::CLONE_NEWNS | CloneFlags::CLONE_NEWUSER; let pid = unsafe { nix::sched::clone(cb, stack, flags, None) } .context("Failed to create user namespace")?; let status = nix::sys::wait::waitpid(pid, Some(WaitPidFlag::__WCLONE)) .context("Failed to reap child")?; if status != WaitStatus::Exited(pid, 0) { bail!("Unexpected wait result: {:?}", status); } Ok(()) } #[cfg(target_os = "linux")] pub async fn test_for_unprivileged_userns_clone() -> Result<()> { if std::env::var("REPRO_ENV_SKIP_CLONE_CHECK") .map(|x| x != "0") .unwrap_or(false) { debug!("Skipping test if user namespaces can be created"); return Ok(()); } debug!("Testing if user namespaces can be created"); if let Err(err) = test_userns_clone() { match tokio::fs::read("/proc/sys/kernel/unprivileged_userns_clone").await { Ok(buf) => { if buf == b"0\n" { warn!("User namespaces are not enabled in /proc/sys/kernel/unprivileged_userns_clone") } } Err(err) => warn!( "Failed to check if unprivileged_userns_clone are allowed: {:#}", err ), } Err(err) } else { debug!("Successfully tested for user namespaces"); Ok(()) } } #[cfg(not(target_os = "linux"))] pub async fn test_for_unprivileged_userns_clone() -> Result<()> { Ok(()) } #[cfg(test)] mod tests { use super::*; #[test] fn test_parse_image_ref() -> Result<()> { let image_ref = ImageRef::from_str("rust")?; assert_eq!( image_ref, ImageRef { repo: "rust".to_string(), tag: None, digest: None, } ); Ok(()) } #[test] fn test_parse_image_ref_digest() -> Result<()> { let image_ref = ImageRef::from_str( "rust@sha256:28ee8822965a932e229599b59928f8c2655b2a198af30568acf63e8aff0e8a3a", )?; assert_eq!( image_ref, ImageRef { repo: "rust".to_string(), tag: None, digest: Some( "sha256:28ee8822965a932e229599b59928f8c2655b2a198af30568acf63e8aff0e8a3a" .to_string() ), } ); Ok(()) } #[test] fn test_parse_image_ref_tag() -> Result<()> { let image_ref = ImageRef::from_str("rust:1-alpine3.18")?; assert_eq!( image_ref, ImageRef { repo: "rust".to_string(), tag: Some("1-alpine3.18".to_string()), digest: None, } ); Ok(()) } } repro-env-0.4.0/src/errors.rs000064400000000000000000000001551046102023000142140ustar 00000000000000pub use anyhow::{anyhow, bail, Context as _, Error, Result}; pub use log::{debug, error, info, trace, warn}; repro-env-0.4.0/src/fetch.rs000064400000000000000000000130371046102023000137740ustar 00000000000000use crate::args; use crate::container; use crate::errors::*; use crate::http; use crate::lockfile::{Lockfile, PackageLock}; use crate::paths; use crate::pkgs; use sha2::{Digest, Sha256}; use std::path::Path; use tokio::fs; use tokio::io::{AsyncSeekExt, AsyncWriteExt}; pub async fn download_dependencies(dependencies: &[PackageLock]) -> Result<()> { let client = http::Client::new()?; let pkgs_cache_dir = paths::pkgs_cache_dir()?; for package in dependencies { trace!("Found dependencies: {package:?}"); let path = pkgs_cache_dir.sha256_path(&package.sha256)?; if path.exists() { debug!( "Package already in cache: {:?} {:?}", package.name, package.version ); } else { let parent = path .parent() .context("Failed to determine parent directory")?; fs::create_dir_all(parent).await.with_context(|| { anyhow!("Failed to create parent directories for file: {path:?}") })?; let mut dl_path = path.clone(); dl_path.as_mut_os_string().push(".tmp"); let file = fs::OpenOptions::new() .write(true) .create(true) .open(&dl_path) .await?; let mut lock = fd_lock::RwLock::new(file); debug!("Trying to acquire write lock for file: {path:?}"); let mut lock = lock .write() .with_context(|| anyhow!("Failed to acquire lock for {dl_path:?}"))?; // check if file became available in meantime if path.exists() { debug!("File became available in the meantime, nothing to do"); } else { debug!( "Downloading package into cache: {:?} {:?}", package.name, package.version ); lock.set_len(0).await.context("Failed to truncate file")?; lock.rewind() .await .context("Failed to rewind file to beginning")?; let mut response = client.request(&package.url).await.with_context(|| { anyhow!("Failed to download package from url: {:?}", package.url) })?; let mut hasher = Sha256::new(); while let Some(chunk) = response .chunk() .await .context("Failed to read from download stream")? { lock.write_all(&chunk) .await .context("Failed to write to downloaded data to disk")?; hasher.update(&chunk); } let result = hex::encode(hasher.finalize()); if package.sha256 != result { lock.set_len(0) .await .context("Mismatch of sha256, failed to truncate file")?; bail!( "Mismatch of sha256, expected={:?}, downloaded={:?}", package.sha256, result ); } lock.sync_all() .await .context("Failed to sync downloaded data to disk")?; fs::rename(&dl_path, &path) .await .with_context(|| anyhow!("Failed to rename {dl_path:?} to {path:?}"))?; } } } Ok(()) } pub fn verify_pin_metadata(pkg: &[u8], pin: &PackageLock) -> Result<()> { let pkg = match pin.system.as_str() { "alpine" => pkgs::alpine::parse(pkg).context("Failed to parse data as alpine package")?, "archlinux" => { pkgs::archlinux::parse(pkg).context("Failed to parse data as archlinux package")? } "debian" => pkgs::debian::parse(pkg).context("Failed to parse data as debian package")?, system => bail!("Unknown package system: {system:?}"), }; debug!("Parsed embedded metadata from package: {pkg:?}"); if pin.name != pkg.name { bail!( "Package name in metadata doesn't match lockfile: expected={:?}, embedded={:?}", pin.name, pkg.name ); } if pin.version != pkg.version { bail!( "Package version in metadata doesn't match lockfile: expected={:?}, embedded={:?}", pin.version, pkg.version ); } Ok(()) } pub async fn fetch(fetch: &args::Fetch) -> Result<()> { // load lockfile let path = fetch.file.as_deref().unwrap_or(Path::new("repro-env.lock")); let buf = fs::read_to_string(path) .await .with_context(|| anyhow!("Failed to read dependency lockfile: {path:?}"))?; let lockfile = Lockfile::deserialize(&buf)?; trace!("Loaded dependency lockfile from file: {lockfile:?}"); if !fetch.no_pull { let image = &lockfile.container.image; if let Err(err) = container::inspect(image).await { debug!("Could not find image in cache: {err:#}"); container::pull(image).await?; } else { info!("Found container image in local cache: {image:?}"); } } // ignore packages that are already present in the container let dependencies = lockfile .packages .into_iter() .filter(|p| !p.installed) .collect::>(); if !dependencies.is_empty() { download_dependencies(&dependencies).await?; } Ok(()) } repro-env-0.4.0/src/http.rs000064400000000000000000000017021046102023000136560ustar 00000000000000use crate::errors::*; static APP_USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")); pub struct Client { http: reqwest::Client, } impl Client { pub fn new() -> Result { let http = reqwest::Client::builder() .user_agent(APP_USER_AGENT) .build()?; Ok(Client { http }) } pub async fn request(&self, url: &str) -> Result { info!("Downloading {url:?}..."); let response = self .http .get(url) .send() .await .context("Failed to send http request")? .error_for_status() .context("Received http error")?; Ok(response) } pub async fn fetch(&self, url: &str) -> Result { let response = self.request(url).await?; let buf = response.bytes().await.context("Failed to read http body")?; Ok(buf) } } repro-env-0.4.0/src/lib.rs000064400000000000000000000003741046102023000134510ustar 00000000000000pub mod args; pub mod build; pub mod container; pub mod errors; pub mod fetch; pub mod http; pub mod lockfile; pub mod manifest; pub mod paths; pub mod pgp; pub mod pkgs; pub mod resolver; #[cfg(test)] pub mod test_data; pub mod update; pub mod utils; repro-env-0.4.0/src/lockfile.rs000064400000000000000000000167241046102023000145010ustar 00000000000000use crate::errors::*; use serde::{Deserialize, Serialize}; use std::path::Path; use tokio::fs; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct Lockfile { pub container: ContainerLock, #[serde(default, rename = "package", skip_serializing_if = "Vec::is_empty")] pub packages: Vec, } impl Lockfile { pub fn deserialize(buf: &str) -> Result { let lockfile = toml::from_str(buf)?; Ok(lockfile) } pub fn serialize(&self) -> Result { let toml = toml::to_string_pretty(self)?; Ok(toml) } pub async fn read_from_file>(path: P) -> Result { let path = path.as_ref(); let buf = fs::read_to_string(&path) .await .with_context(|| anyhow!("Failed to read dependency lockfile: {path:?}"))?; let lockfile = Self::deserialize(&buf)?; trace!("Loaded dependency lockfile from file: {lockfile:?}"); Ok(lockfile) } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct ContainerLock { pub image: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct PackageLock { pub name: String, pub version: String, pub system: String, pub url: String, #[serde(default, skip_serializing_if = "Vec::is_empty")] pub provides: Vec, pub sha256: String, #[serde(skip_serializing_if = "Option::is_none")] pub signature: Option, /// If true, this package is already present in the container and does not /// need to be installed. It's only in the lockfile to make the /// repro-env.lock diff easier to read and help git's delta-compression. #[serde(default, skip_serializing_if = "is_false")] pub installed: bool, } fn is_false(value: &bool) -> bool { !value } #[cfg(test)] mod tests { use super::*; #[test] pub fn test_serialize_archlinux() -> Result<()> { let lockfile = Lockfile { container: ContainerLock { image: "docker.io/library/archlinux@sha256:6568d3f1f278827a4a7d8537f80c2ae36982829a0c6bccff4cec081774025472" .to_string(), }, packages: vec![ PackageLock { name: "archlinux-keyring".to_string(), version: "20230704-1".to_string(), system: "archlinux".to_string(), url: "https://archive.archlinux.org/packages/a/archlinux-keyring/archlinux-keyring-20230704-1-any.pkg.tar.zst".to_string(), provides: vec![], sha256: "6a3d2acaa396c4bd72fe3f61a3256d881e3fc2cf326113cf331f168e36dd9a3c".to_string(), signature: Some( "iHUEABYIAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZKPPXgAKCRBtQr3RFuAGj9oXAP94RQ1sKD53/RxVYlVEEOjKHvOmrWvDkt1veMYygnlnIgD+MLg/TT6d71kE8F08+JH+EcnG7wQow5Xr/qBo1VPLdgQ=".to_string()), installed: false, }, PackageLock { name: "binutils".to_string(), version: "2.40-6".to_string(), system: "archlinux".to_string(), url: "https://archive.archlinux.org/packages/b/binutils/binutils-2.40-6-x86_64.pkg.tar.zst".to_string(), provides: vec![], sha256: "b65fd16001578e10b602e577a8031cbfffc1164caf47ed9ba00c60d804519430".to_string(), signature: Some( "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZG6Rg18UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCge2AQD/LGBeHRaeO8xh4E/bAYfqd1O/OFqk2DrQBJ73cdKl2gD9EC8p4U/cXQK8V774m6LSS50usH5pxcQWEq/H0SF+FgM=".to_string()), installed: false, } ], }; let toml = lockfile.serialize()?; assert_eq!( toml, r#"[container] image = "docker.io/library/archlinux@sha256:6568d3f1f278827a4a7d8537f80c2ae36982829a0c6bccff4cec081774025472" [[package]] name = "archlinux-keyring" version = "20230704-1" system = "archlinux" url = "https://archive.archlinux.org/packages/a/archlinux-keyring/archlinux-keyring-20230704-1-any.pkg.tar.zst" sha256 = "6a3d2acaa396c4bd72fe3f61a3256d881e3fc2cf326113cf331f168e36dd9a3c" signature = "iHUEABYIAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZKPPXgAKCRBtQr3RFuAGj9oXAP94RQ1sKD53/RxVYlVEEOjKHvOmrWvDkt1veMYygnlnIgD+MLg/TT6d71kE8F08+JH+EcnG7wQow5Xr/qBo1VPLdgQ=" [[package]] name = "binutils" version = "2.40-6" system = "archlinux" url = "https://archive.archlinux.org/packages/b/binutils/binutils-2.40-6-x86_64.pkg.tar.zst" sha256 = "b65fd16001578e10b602e577a8031cbfffc1164caf47ed9ba00c60d804519430" signature = "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZG6Rg18UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCge2AQD/LGBeHRaeO8xh4E/bAYfqd1O/OFqk2DrQBJ73cdKl2gD9EC8p4U/cXQK8V774m6LSS50usH5pxcQWEq/H0SF+FgM=" "# ); let deserialized = Lockfile::deserialize(&toml)?; assert_eq!(deserialized, lockfile); Ok(()) } #[test] pub fn test_serialize_debian() -> Result<()> { let lockfile = Lockfile { container: ContainerLock { image: "debian@sha256:3d868b5eb908155f3784317b3dda2941df87bbbbaa4608f84881de66d9bb297b" .to_string(), }, packages: vec![ PackageLock { name: "binutils".to_string(), version: "2.40-2".to_string(), system: "debian".to_string(), url: "https://snapshot.debian.org/archive/debian/20230115T211934Z/pool/main/b/binutils/binutils_2.40-2_amd64.deb".to_string(), provides: vec![], sha256: "83c3e20b53e1fbd84d764c3ba27d26a0376e361ae5d7fb37120196934dd87424".to_string(), signature: None, installed: false, }, PackageLock { name: "binutils-common".to_string(), version: "2.40-2".to_string(), system: "debian".to_string(), url: "https://snapshot.debian.org/archive/debian/20230115T211934Z/pool/main/b/binutils/binutils-common_2.40-2_amd64.deb".to_string(), provides: vec![], sha256: "ab314134f43a0891a48f69a9bc33d825da748fa5e0ba2bebb7a5c491b026f1a0".to_string(), signature: None, installed: false, } ], }; let toml = lockfile.serialize()?; assert_eq!( toml, r#"[container] image = "debian@sha256:3d868b5eb908155f3784317b3dda2941df87bbbbaa4608f84881de66d9bb297b" [[package]] name = "binutils" version = "2.40-2" system = "debian" url = "https://snapshot.debian.org/archive/debian/20230115T211934Z/pool/main/b/binutils/binutils_2.40-2_amd64.deb" sha256 = "83c3e20b53e1fbd84d764c3ba27d26a0376e361ae5d7fb37120196934dd87424" [[package]] name = "binutils-common" version = "2.40-2" system = "debian" url = "https://snapshot.debian.org/archive/debian/20230115T211934Z/pool/main/b/binutils/binutils-common_2.40-2_amd64.deb" sha256 = "ab314134f43a0891a48f69a9bc33d825da748fa5e0ba2bebb7a5c491b026f1a0" "# ); let deserialized = Lockfile::deserialize(&toml)?; assert_eq!(deserialized, lockfile); Ok(()) } } repro-env-0.4.0/src/main.rs000064400000000000000000000017631046102023000136320ustar 00000000000000use clap::Parser; use env_logger::Env; use repro_env::args::{Args, SubCommand}; use repro_env::build; use repro_env::errors::*; use repro_env::fetch; use repro_env::update; use std::env; use std::io; #[tokio::main] async fn main() -> Result<()> { let args = Args::parse(); let log_level = match args.verbose { 0 => "info", 1 => "debug", _ => "trace", }; env_logger::init_from_env(Env::default().default_filter_or(log_level)); if let Some(path) = args.context { debug!("Changing current directory to {path:?}..."); env::set_current_dir(&path) .with_context(|| anyhow!("Failed to switch to directory {path:?}"))?; } match args.subcommand { SubCommand::Build(build) => build::build(&build).await, SubCommand::Update(update) => update::update(&update).await, SubCommand::Fetch(fetch) => fetch::fetch(&fetch).await, SubCommand::Completions(completions) => completions.generate(io::stdout()), } } repro-env-0.4.0/src/manifest.rs000064400000000000000000000045771046102023000145220ustar 00000000000000use crate::errors::*; use crate::lockfile::Lockfile; use indexmap::IndexSet; use serde::{Deserialize, Serialize}; use std::collections::HashSet; use std::path::Path; use tokio::fs; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct Manifest { pub container: ContainerManifest, pub packages: Option, } impl Manifest { pub fn deserialize(buf: &str) -> Result { let manifest = toml::from_str(buf).context("Failed to load manifest from toml")?; Ok(manifest) } pub async fn read_from_file>(path: P) -> Result { let path = path.as_ref(); let buf = fs::read_to_string(&path) .await .with_context(|| anyhow!("Failed to read dependency manifest: {path:?}"))?; let manifest = Self::deserialize(&buf)?; debug!("Loaded manifest from file: {manifest:?}"); Ok(manifest) } pub fn satisfied_by(&self, lockfile: &Lockfile) -> Result<()> { if let Some(packages) = &self.packages { let mut provided = HashSet::new(); for package in &lockfile.packages { provided.insert(package.name.clone()); provided.extend(package.provides.iter().cloned()); } for dependency in &packages.dependencies { let (name, _) = dependency.split_once('=').unwrap_or((dependency, "")); if !provided.contains(name) { bail!("Lockfile does not satisify dependency: {dependency:?}"); } } } Ok(()) } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct ContainerManifest { pub image: String, } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] pub struct PackagesManifest { pub system: String, #[serde(default)] pub dependencies: IndexSet, } #[cfg(test)] mod tests { use super::*; #[test] fn test_parse_manifest() -> Result<()> { let manifest = Manifest::deserialize( r#"[container] image = "docker.io/library/rust:1-alpine" "#, )?; assert_eq!( manifest, Manifest { container: ContainerManifest { image: "docker.io/library/rust:1-alpine".to_string(), }, packages: None } ); Ok(()) } } repro-env-0.4.0/src/paths.rs000064400000000000000000000126671046102023000140320ustar 00000000000000use crate::errors::*; use std::env; use std::io::ErrorKind; use std::path::{Component, Path, PathBuf}; use tokio::fs; static SHARD_SIZE: usize = 2; pub fn repro_env_dir() -> Result { if let Some(path) = env::var_os("REPRO_ENV_HOME") { Ok(path.into()) } else { let mut cache = dirs::cache_dir().context("Failed to detect cache directory")?; cache.push("repro-env"); Ok(cache) } } pub fn cache_dir() -> Result { if let Some(path) = env::var_os("REPRO_ENV_CACHE") { Ok(path.into()) } else { repro_env_dir() } } pub fn pkgs_cache_dir() -> Result { let mut path = cache_dir()?; path.push("pkgs"); Ok(PkgsCacheDir { path }) } pub fn alpine_cache_dir() -> Result { let mut path = cache_dir()?; path.push("alpine"); Ok(PkgsCacheDir { path }) } #[derive(Debug)] pub struct PkgsCacheDir { path: PathBuf, } impl PkgsCacheDir { fn shard<'a>(hash: &'a str, algo: &'static str, len: usize) -> Result<(&'a str, &'a str)> { if hash.len() != len { bail!("Unexpected {algo} checksum length: {:?}", hash.len()); } if !hash.chars().all(char::is_alphanumeric) { bail!("Unexpected characters in {algo}: {hash:?}"); } let shard = &hash[..SHARD_SIZE]; let suffix = &hash[SHARD_SIZE..]; Ok((shard, suffix)) } fn shard_sha256(sha256: &str) -> Result<(&str, &str)> { Self::shard(sha256, "sha256", 64) } fn shard_sha1(sha1: &str) -> Result<(&str, &str)> { Self::shard(sha1, "sha1", 40) } pub fn sha256_path(&self, sha256: &str) -> Result { let (shard, suffix) = Self::shard_sha256(sha256)?; let mut path = self.path.clone(); path.push(shard); path.push(suffix); Ok(path) } fn sha1_path(&self, sha1: &str) -> Result { let (shard, suffix) = Self::shard_sha1(sha1)?; let mut path = self.path.clone(); path.push(shard); path.push(suffix); Ok(path) } pub async fn sha1_read_link(&self, sha1: &str) -> Result> { let path = self.sha1_path(sha1)?; match fs::read_link(&path).await { Ok(path) => { trace!("Found symlink in cache: {path:?}"); let sha256 = Self::link_to_sha256(&path)?; Ok(Some(sha256)) } Err(err) if err.kind() == ErrorKind::NotFound => { trace!("Did not find symlink in cache: {path:?}"); Ok(None) } Err(err) => Err(err.into()), } } pub fn sha1_to_sha256(&self, sha1: &str, sha256: &str) -> Result<(PathBuf, PathBuf)> { let sha1_path = self.sha1_path(sha1)?; let (shard, suffix) = Self::shard_sha256(sha256)?; let mut sha256_path = PathBuf::from("../../pkgs"); sha256_path.push(shard); sha256_path.push(suffix); Ok((sha1_path, sha256_path)) } fn link_to_sha256(path: &Path) -> Result { let mut components = path.components().rev(); let tail = components.next().context("Link is missing filename")?; let shard = components.next().context("Link is missing shard")?; let tail = Self::component_to_name(&tail)?; let shard = Self::component_to_name(&shard)?; Ok(format!("{shard}{tail}")) } fn component_to_name<'a>(comp: &'a Component) -> Result<&'a str> { let Component::Normal(comp) = comp else { bail!("Component has reserved name") }; let Some(comp) = comp.to_str() else { bail!("Component is invalid utf8") }; Ok(comp) } } #[cfg(test)] mod tests { use super::*; use std::path::Path; #[test] fn test_sha256_path() { let dir = PkgsCacheDir { path: PathBuf::from("/cache"), }; assert!(dir.sha256_path("").is_err()); assert!(dir.sha256_path("ffff").is_err()); assert!(dir .sha256_path("////////////////////////////////////////////////////////////////") .is_err()); let path = dir .sha256_path("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") .unwrap(); assert_eq!( path, Path::new("/cache/ff/ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") ); } #[test] fn test_sha1_read_link() -> Result<()> { let path = PkgsCacheDir::link_to_sha256(Path::new( "../../../pkgs/ff/7951b5950a3a0319e86988041db4438b31a6ee4c7a36c64bd6c0c4607e40c9", ))?; assert_eq!( path, "ff7951b5950a3a0319e86988041db4438b31a6ee4c7a36c64bd6c0c4607e40c9" ); Ok(()) } #[test] fn test_sha1_to_sha256() -> Result<()> { let dir = PkgsCacheDir { path: PathBuf::from("/cache"), }; let (sha1, sha256) = dir.sha1_to_sha256( "83d8ab27f4fd4725a147245f89d076aa96b52262", "ff7951b5950a3a0319e86988041db4438b31a6ee4c7a36c64bd6c0c4607e40c9", )?; assert_eq!( sha1, Path::new("/cache/83/d8ab27f4fd4725a147245f89d076aa96b52262") ); assert_eq!( sha256, Path::new( "../../pkgs/ff/7951b5950a3a0319e86988041db4438b31a6ee4c7a36c64bd6c0c4607e40c9" ) ); Ok(()) } } repro-env-0.4.0/src/pgp.rs000064400000000000000000000100331046102023000134620ustar 00000000000000use crate::errors::*; use crate::lockfile::PackageLock; use data_encoding::BASE64; use sequoia_openpgp::parse::{PacketParser, PacketParserResult, Parse}; use sequoia_openpgp::Packet; use std::cmp; use std::time; use std::time::SystemTime; pub fn parse_timestamp_from_sig(buf: &[u8]) -> Result> { let mut ppr = PacketParser::from_bytes(buf)?; while let PacketParserResult::Some(pp) = ppr { let (packet, next_ppr) = pp.recurse()?; ppr = next_ppr; debug!("Found packet in pgp data: {packet:?}"); let Packet::Signature(sig) = &packet else { continue; }; let Some(time) = sig.signature_creation_time() else { continue; }; return Ok(Some(time)); } Ok(None) } pub fn find_max_signature_time<'a, I: Iterator>( pkgs: I, ) -> Result> { let mut current_max = None; for pkg in pkgs { let base64 = pkg .signature .as_ref() .context("Package in dependency lockfile is missing signature")?; let signature = BASE64 .decode(base64.as_bytes()) .with_context(|| anyhow!("Failed to decode signature as base64: {base64:?}"))?; match (parse_timestamp_from_sig(&signature), &mut current_max) { (Ok(Some(time)), Some(max)) => { *max = cmp::max(*max, time); } (Ok(Some(time)), max) => *max = Some(time), (Ok(None), _) => (), (Err(err), _) => { warn!("Failed to parse timestamp from signature {base64:?}: {err:#?}") } } } Ok(current_max) } #[cfg(test)] mod tests { use super::*; use data_encoding::BASE64; #[test] fn test_parse_sig() { let buf = BASE64.decode(b"iHUEABYKAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZcU7FAAKCRBtQr3RFuAGj4Y4AQCKsihdyJWyNGBwQ9Kd5AmenehuvR4xfFOCjIOndQCYhwD+NFzEjbwraHHVtEjQh4HtrnZPc0JplQvM5zRT3gDCawE=").unwrap(); let time = parse_timestamp_from_sig(&buf).unwrap().unwrap(); let expected = time::UNIX_EPOCH .checked_add(time::Duration::from_secs(1707424532)) .unwrap(); assert_eq!(time, expected); } #[test] fn test_max_signature_time() { let pkgs = [ PackageLock { name: "archlinux-keyring".to_string(), version: "20230704-1".to_string(), system: "archlinux".to_string(), url: "https://archive.archlinux.org/packages/a/archlinux-keyring/archlinux-keyring-20230704-1-any.pkg.tar.zst".to_string(), provides: vec![], sha256: "6a3d2acaa396c4bd72fe3f61a3256d881e3fc2cf326113cf331f168e36dd9a3c".to_string(), signature: Some( "iHUEABYIAB0WIQQEKYl95fO9rFN6MGltQr3RFuAGjwUCZKPPXgAKCRBtQr3RFuAGj9oXAP94RQ1sKD53/RxVYlVEEOjKHvOmrWvDkt1veMYygnlnIgD+MLg/TT6d71kE8F08+JH+EcnG7wQow5Xr/qBo1VPLdgQ=".to_string()), installed: false, }, PackageLock { name: "binutils".to_string(), version: "2.40-6".to_string(), system: "archlinux".to_string(), url: "https://archive.archlinux.org/packages/b/binutils/binutils-2.40-6-x86_64.pkg.tar.zst".to_string(), provides: vec![], sha256: "b65fd16001578e10b602e577a8031cbfffc1164caf47ed9ba00c60d804519430".to_string(), signature: Some( "iNUEABYKAH0WIQQFx3danouXdAf+COadTFqhVCbaCgUCZG6Rg18UgAAAAAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MDVDNzc3NUE5RThCOTc3NDA3RkUwOEU2OUQ0QzVBQTE1NDI2REEwQQAKCRCdTFqhVCbaCge2AQD/LGBeHRaeO8xh4E/bAYfqd1O/OFqk2DrQBJ73cdKl2gD9EC8p4U/cXQK8V774m6LSS50usH5pxcQWEq/H0SF+FgM=".to_string()), installed: false, } ]; let time = find_max_signature_time(pkgs.iter()).unwrap(); let expected = time::UNIX_EPOCH .checked_add(time::Duration::from_secs(1688457054)) .unwrap(); assert_eq!(time, Some(expected)); } } repro-env-0.4.0/src/pkgs/alpine.rs000064400000000000000000000051131046102023000151130ustar 00000000000000use crate::errors::*; use crate::pkgs::Pkg; use crate::utils; use flate2::read::GzDecoder; use std::io::{BufRead, BufReader, Read}; pub fn parse_pkginfo(reader: R) -> Result { let reader = BufReader::new(reader); let mut name = None; let mut version = None; for line in reader.lines() { let line = line?; if let Some(value) = line.strip_prefix("pkgname = ") { name = Some(value.to_string()); } else if let Some(value) = line.strip_prefix("pkgver = ") { version = Some(value.to_string()); } } Ok(Pkg { name: name.context("Could not find pkgname in .PKGINFO")?, version: version.context("Could not find pkgver in .PKGINFO")?, }) } pub fn parse(reader: R) -> Result { let mut r = BufReader::new(reader); utils::read_gzip_to_end(&mut r).context("Failed to strip signature")?; let gz = GzDecoder::new(r); let mut tar = tar::Archive::new(gz); for entry in tar.entries()? { let entry = entry?; let path = entry.path()?; if path.to_str() == Some(".PKGINFO") { return parse_pkginfo(entry); } } bail!("Failed to find .PKGINFO in package file") } #[cfg(test)] mod tests { use super::*; #[test] fn test_parse_pkginfo() -> Result<()> { let data = br#"# Generated by abuild 3.11.1-r0 # using fakeroot version 1.31 # Thu Jul 20 10:08:19 UTC 2023 pkgname = mpfr4 pkgver = 4.2.0_p12-r0 pkgdesc = multiple-precision floating-point library url = https://www.mpfr.org/ builddate = 1689847699 packager = Buildozer size = 684032 arch = x86_64 origin = mpfr4 commit = 8910287059187d6e83a13dd2078a2a42ea2121f4 maintainer = Natanael Copa license = LGPL-3.0-or-later replaces = mpfr provides = mpfr=4.2.0_p12-r0 # automatically detected: provides = so:libmpfr.so.6=6.2.0 depend = so:libc.musl-x86_64.so.1 depend = so:libgmp.so.10 datahash = a2c44c6b313ca65980d7f610026a71e6119d119de6cf2b78e52464d9d80bff45 "#; let pkg = parse_pkginfo(&data[..])?; assert_eq!( pkg, Pkg { name: "mpfr4".to_string(), version: "4.2.0_p12-r0".to_string(), } ); Ok(()) } #[test] fn test_parse_pkg() -> Result<()> { let pkg = parse(crate::test_data::ALPINE_APK_EXAMPLE)?; assert_eq!( pkg, Pkg { name: "alpine-base".to_string(), version: "3.18.3-r0".to_string(), } ); Ok(()) } } repro-env-0.4.0/src/pkgs/archlinux.rs000064400000000000000000000117131046102023000156430ustar 00000000000000use crate::container::Container; use crate::errors::*; use crate::pkgs::Pkg; use peekread::{BufPeekReader, PeekRead}; use std::fmt::Write; use std::io::{BufRead, BufReader, Read}; use std::time::SystemTime; use std::time::UNIX_EPOCH; pub const GPG_CONF_DIR: &str = "/etc/pacman.d/gnupg/"; pub const GPG_CONF_FILENAME: &str = "gpg.conf"; pub enum Compression { Xz, Zstd, None, } pub fn detect_compression(mut reader: R) -> Result { let mut buf = [0u8; 6]; reader .read_exact(&mut buf) .context("Failed to read magic bytes from archive")?; if buf.starts_with(&[0x28, 0xB5, 0x2F, 0xFD]) { Ok(Compression::Zstd) } else if buf.starts_with(&[0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00]) { Ok(Compression::Xz) } else { Ok(Compression::None) } } pub fn parse_pkginfo(reader: R) -> Result { let reader = BufReader::new(reader); let mut name = None; let mut version = None; for line in reader.lines() { let line = line?; if let Some(value) = line.strip_prefix("pkgname = ") { name = Some(value.to_string()); } else if let Some(value) = line.strip_prefix("pkgver = ") { version = Some(value.to_string()); } } Ok(Pkg { name: name.context("Could not find pkgname in .PKGINFO")?, version: version.context("Could not find pkgver in .PKGINFO")?, }) } pub fn parse_tar(reader: R) -> Result { let mut tar = tar::Archive::new(reader); for entry in tar.entries()? { let entry = entry?; let path = entry.path()?; if path.to_str() == Some(".PKGINFO") { return parse_pkginfo(entry); } } bail!("Failed to find .PKGINFO in package file") } pub fn parse(reader: R) -> Result { let mut reader = BufPeekReader::new(reader); match detect_compression(reader.peek())? { Compression::Xz => { let mut buf = Vec::new(); lzma_rs::xz_decompress(&mut reader, &mut buf)?; parse_tar(&buf[..]) } Compression::Zstd => { let decoder = ruzstd::StreamingDecoder::new(reader)?; parse_tar(decoder) } Compression::None => parse_tar(reader), } } pub async fn set_pacman_verification_datetime( container: &Container, time: SystemTime, ) -> Result<()> { let path = format!("{GPG_CONF_DIR}{GPG_CONF_FILENAME}"); let gpg_conf = container.cat(&path).await?; let mut gpg_conf = String::from_utf8(gpg_conf).context("Failed to parse gpg.conf as utf-8")?; if !gpg_conf.ends_with('\n') { gpg_conf.push('\n'); } // check if a faked-system-time is already configured if let Some(line) = gpg_conf .lines() .find(|line| line.starts_with("faked-system-time")) { warn!("Container already defines a verification datetime: {line:?}"); return Ok(()); } let epoch = time .duration_since(UNIX_EPOCH) .with_context(|| anyhow!("Failed to derive unix epoch from time {time:?}"))?; writeln!(gpg_conf, "faked-system-time {}", epoch.as_secs())?; container .write_file(GPG_CONF_DIR, GPG_CONF_FILENAME, gpg_conf.as_bytes()) .await?; Ok(()) } #[cfg(test)] mod tests { use super::*; #[test] fn test_parse_pkg() -> Result<()> { let archive = { let data = br#"# Generated by makepkg 6.0.2 # using fakeroot version 1.31 pkgname = gcc pkgbase = gcc pkgver = 13.1.1-1 pkgdesc = The GNU Compiler Collection - C and C++ frontends url = https://gcc.gnu.org builddate = 1682849478 packager = Frederik Schwan size = 190564290 arch = x86_64 license = GPL3 license = LGPL license = FDL license = custom replaces = gcc-multilib provides = gcc-multilib depend = gcc-libs=13.1.1-1 depend = binutils>=2.28 depend = libmpc depend = zstd depend = libisl.so=23-64 optdepend = lib32-gcc-libs: for generating code for 32-bit ABI makedepend = binutils makedepend = doxygen makedepend = gcc-ada makedepend = gcc-d makedepend = git makedepend = lib32-glibc makedepend = lib32-gcc-libs makedepend = libisl makedepend = libmpc makedepend = python makedepend = zstd checkdepend = dejagnu checkdepend = expect checkdepend = inetutils checkdepend = python-pytest checkdepend = tcl "#; let mut tar = tar::Builder::new(Vec::new()); let mut header = tar::Header::new_gnu(); header.set_path(".PKGINFO")?; header.set_size(data.len() as u64); header.set_cksum(); tar.append(&header, &data[..])?; tar.into_inner()? }; let mut buf = Vec::new(); lzma_rs::xz_compress(&mut &archive[..], &mut buf)?; let pkg = parse(&buf[..]).context("Failed to parse package")?; assert_eq!( pkg, Pkg { name: "gcc".to_string(), version: "13.1.1-1".to_string(), } ); Ok(()) } } repro-env-0.4.0/src/pkgs/debian.rs000064400000000000000000000206621046102023000150730ustar 00000000000000use crate::errors::*; use crate::pkgs::Pkg; use std::io::BufReader; use std::io::Read; pub fn parse_control(control: &str) -> Result { let mut name = None; let mut version = None; for line in control.lines() { if let Some(value) = line.strip_prefix("Package: ") { name = Some(value.to_string()); } if let Some(value) = line.strip_prefix("Version: ") { version = Some(value.to_string()); } } Ok(Pkg { name: name.context("Failed to find package name in deb control data")?, version: version.context("Failed to find package version in deb control data")?, }) } pub fn parse_control_tar(filename: &[u8], reader: R) -> Result { let mut buf = Vec::new(); let mut reader = BufReader::new(reader); match filename { b"control.tar.xz" => lzma_rs::xz_decompress(&mut reader, &mut buf)?, _ => bail!("Unsupported compression for control.tar: {filename:?}"), } let mut tar = tar::Archive::new(&buf[..]); for entry in tar.entries()? { let mut entry = entry?; let path = entry.path()?; let filename = path .to_str() .with_context(|| anyhow!("Package contains paths with invalid encoding: {:?}", path))?; if filename == "./control" { let mut buf = String::new(); entry.read_to_string(&mut buf)?; return parse_control(&buf); } } bail!("Failed to find control data in control.tar") } pub fn parse(reader: R) -> Result { let mut archive = ar::Archive::new(reader); while let Some(entry) = archive.next_entry() { let mut entry = entry?; let filename = entry.header().identifier(); if !filename.starts_with(b"control.tar") { continue; } let filename = filename.to_owned(); return parse_control_tar(&filename, &mut entry); } bail!("Failed to find control data") } #[cfg(test)] mod tests { use super::*; #[test] fn test_parse_control_data() -> Result<()> { let data = "Package: binutils-common\nSource: binutils\nVersion: 2.40-2\nArchitecture: amd64\nMaintainer: Matthias Klose \nInstalled-Size: 15021\nBreaks: binutils (<< 2.38.50.20220527-2), binutils-multiarch (<< 2.38.50.20220527-2)\nReplaces: binutils (<< 2.38.50.20220527-2), binutils-multiarch (<< 2.38.50.20220527-2)\nSection: devel\nPriority: optional\nMulti-Arch: same\nHomepage: https://www.gnu.org/software/binutils/\nDescription: Common files for the GNU assembler, linker and binary utilities\n This package contains the localization files used by binutils packages for\n various target architectures and parts of the binutils documentation. It is\n not useful on its own.\n"; let data = parse_control(data)?; assert_eq!( data, Pkg { name: "binutils-common".to_string(), version: "2.40-2".to_string(), } ); Ok(()) } #[test] fn test_parse_deb() -> Result<()> { let tar = { let data = b"Package: binutils-common\nSource: binutils\nVersion: 2.40-2\nArchitecture: amd64\nMaintainer: Matthias Klose \nInstalled-Size: 15021\nBreaks: binutils (<< 2.38.50.20220527-2), binutils-multiarch (<< 2.38.50.20220527-2)\nReplaces: binutils (<< 2.38.50.20220527-2), binutils-multiarch (<< 2.38.50.20220527-2)\nSection: devel\nPriority: optional\nMulti-Arch: same\nHomepage: https://www.gnu.org/software/binutils/\nDescription: Common files for the GNU assembler, linker and binary utilities\n This package contains the localization files used by binutils packages for\n various target architectures and parts of the binutils documentation. It is\n not useful on its own.\n"; let mut tar = tar::Builder::new(Vec::new()); // it's non-trivial to make a tar::Header with path set to `./control`, so we parse an existing one let mut header = tar::Header::from_byte_slice(&[ 0x2e, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x30, 0x30, 0x30, 0x36, 0x34, 0x34, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x37, 0x30, 0x34, 0x00, 0x31, 0x34, 0x34, 0x31, 0x34, 0x37, 0x34, 0x35, 0x31, 0x30, 0x34, 0x00, 0x30, 0x31, 0x31, 0x33, 0x32, 0x32, 0x00, 0x20, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x75, 0x73, 0x74, 0x61, 0x72, 0x20, 0x20, 0x00, 0x72, 0x6f, 0x6f, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x72, 0x6f, 0x6f, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ]) .clone(); header.set_size(data.len() as u64); header.set_cksum(); tar.append(&header, &data[..])?; tar.into_inner()? }; let compressed = { let mut compressed = Vec::new(); lzma_rs::xz_compress(&mut &tar[..], &mut compressed)?; compressed }; let deb = { let mut ar = ar::Builder::new(Vec::new()); let header = ar::Header::new(b"control.tar.xz".to_vec(), compressed.len() as u64); ar.append(&header, &compressed[..])?; ar.into_inner()? }; let pkg = parse(&deb[..])?; assert_eq!( pkg, Pkg { name: "binutils-common".to_string(), version: "2.40-2".to_string(), } ); Ok(()) } } repro-env-0.4.0/src/pkgs/mod.rs000064400000000000000000000002221046102023000144160ustar 00000000000000pub mod alpine; pub mod archlinux; pub mod debian; #[derive(Debug, PartialEq)] pub struct Pkg { pub name: String, pub version: String, } repro-env-0.4.0/src/resolver/alpine.rs000064400000000000000000000310221046102023000160060ustar 00000000000000use crate::args; use crate::container::{self, Container}; use crate::errors::*; use crate::http; use crate::lockfile::{ContainerLock, PackageLock}; use crate::manifest::PackagesManifest; use crate::paths; use crate::utils; use data_encoding::BASE64; use flate2::bufread::GzDecoder; use sha1::Sha1; use sha2::{Digest, Sha256}; use std::collections::{HashMap, HashSet}; use std::io::{BufRead, BufReader, Read}; use std::rc::Rc; use tokio::fs; pub fn decode_apk_checksum(checksum: &str) -> Result> { let checksum = checksum .strip_prefix("Q1") .with_context(|| anyhow!("Only checksums starting with Q1 are supported: {checksum:?}"))?; let checksum = BASE64 .decode(checksum.as_bytes()) .context("Failed to decode checksum as base64")?; Ok(checksum) } #[derive(Debug, Default)] pub struct DatabaseCache { repos: HashMap>, pkgs: HashMap, } #[derive(Debug)] pub struct CacheEntry { name: String, version: String, arch: String, provides: Vec, checksum: String, repo_url: Rc, } pub struct CacheEntryDraft { pub name: Option, pub version: Option, pub arch: Option, pub provides: Vec, pub checksum: Option, pub repo_url: Rc, } impl TryFrom for CacheEntry { type Error = Error; fn try_from(draft: CacheEntryDraft) -> Result { Ok(Self { name: draft.name.context("Missing name field")?, version: draft.version.context("Missing version field")?, arch: draft.arch.context("Missing arch field")?, provides: draft.provides, checksum: draft.checksum.context("Missing checksum field")?, repo_url: draft.repo_url, }) } } impl CacheEntryDraft { pub fn new(repo_url: Rc) -> Self { CacheEntryDraft { name: None, version: None, arch: None, provides: vec![], checksum: None, repo_url, } } } impl DatabaseCache { pub fn get(&self, id: &str) -> Result<&CacheEntry> { let entry = self .pkgs .get(id) .context("Failed to find package database entry for: {id:?}")?; Ok(entry) } pub fn read_apkindex_text(&mut self, r: R, repo_url: &Rc) -> Result<()> { let reader = BufReader::new(r); let mut draft = CacheEntryDraft::new(repo_url.clone()); for line in reader.lines() { let line = line?; if line.is_empty() { let mut new = CacheEntryDraft::new(repo_url.clone()); (new, draft) = (draft, new); let pkg = CacheEntry::try_from(new)?; let id = format!("{}-{}", pkg.name, pkg.version); trace!("Inserting pkg into lookup table: {id:?} => {pkg:?}"); self.pkgs.insert(id, pkg); } else if let Some((key, value)) = line.split_once(':') { match key { "P" => { trace!("Package name: {value:?}"); draft.name = Some(value.to_string()); } "V" => { trace!("Package version: {value:?}"); draft.version = Some(value.to_string()); } "C" => { trace!("Package checksum: {value:?}"); let checksum = decode_apk_checksum(value)?; draft.checksum = Some(hex::encode(checksum)); } "A" => { trace!("Package architecture: {value:?}"); draft.arch = Some(value.to_string()); } "p" => { trace!("Package provides: {value:?}"); for entry in value.split(' ') { let (name, _) = entry.split_once('=').unwrap_or((entry, "")); draft.provides.push(name.to_string()); } } _ => trace!("Ignoring APKINDEX value key={key:?}, value={value:?}"), } } else { bail!("Invalid line in index: {line:?}"); } } Ok(()) } pub fn read_apkindex_container(&mut self, r: R, repo_url: &Rc) -> Result<()> { let mut r = BufReader::new(r); utils::read_gzip_to_end(&mut r).context("Failed to strip signature")?; let gz = GzDecoder::new(r); let mut tar = tar::Archive::new(gz); for entry in tar.entries()? { let entry = entry?; if entry.header().entry_type() == tar::EntryType::Regular { let path = entry.path()?; if path.to_str() == Some("APKINDEX") { self.read_apkindex_text(entry, repo_url)?; } } } Ok(()) } pub fn import_from_container(&mut self, buf: &[u8]) -> Result<()> { let mut tar = tar::Archive::new(buf); for entry in tar.entries()? { let entry = entry?; if entry.header().entry_type() == tar::EntryType::Regular { let path = entry.path()?; let file_name = path .file_name() .context("Failed to detect filename")? .to_str() .unwrap_or(""); if let Some(repo_url) = self.repos.get(file_name).cloned() { debug!("Reading package index for repository: {repo_url:?} ({file_name:?})"); self.read_apkindex_container(entry, &repo_url)?; } } } Ok(()) } pub fn register_repo(&mut self, repo: String) { let mut hasher = Sha1::new(); hasher.update(&repo); let hash = hasher.finalize(); let sha1 = hex::encode(&hash[..4]); self.repos .insert(format!("APKINDEX.{sha1}.tar.gz"), Rc::new(repo)); } pub fn init_repos_from_container(&mut self, buf: &[u8]) -> Result<()> { let mut tar = tar::Archive::new(buf); for entry in tar.entries()? { let entry = entry?; if entry.header().entry_type() == tar::EntryType::Regular { let reader = BufReader::new(entry); for repo in reader.lines() { let repo = repo?; debug!("Found repository in /etc/apk/repositories: {repo:?}"); self.register_repo(repo); } } } Ok(()) } } pub fn calculate_checksum_for_apk(apk: &[u8]) -> Result> { // the first gzip has no end-of-stream marker, only read one file from tar let remaining = { let gz = GzDecoder::new(apk); let mut tar = tar::Archive::new(gz); tar.entries()?.next(); tar.into_inner().into_inner() }; // this is slightly chaotic, there's some over-read by GzDecoder that we need to correct let sig = apk.len() - remaining.len() + 8; // locate the start of the 3rd gzip stream let mut r = &apk[sig..]; utils::read_gzip_to_end(&mut r)?; let content = r.len(); // cut at the location of the 2nd gzip stream let control_data = &apk[sig..(apk.len() - content)]; let mut sha1 = Sha1::new(); sha1.update(control_data); let sha1 = sha1.finalize(); Ok(sha1.to_vec()) } pub async fn detect_installed(container: &Container) -> Result> { let buf = container .exec( &["apk", "info", "-v"], container::Exec { capture_stdout: true, ..Default::default() }, ) .await?; let buf = String::from_utf8(buf).context("Failed to decode apk output as utf8")?; let installed = buf.lines().map(String::from).collect(); Ok(installed) } pub async fn resolve_dependencies( container: &Container, manifest: &PackagesManifest, dependencies: &mut Vec, ) -> Result<()> { info!("Syncing package datatabase..."); container .exec(&["apk", "update"], container::Exec::default()) .await?; let mut dbs = DatabaseCache::default(); { // we only need these files briefly, declare them in a small scope so they get free'd early let repos = container.tar("/etc/apk/repositories").await?; dbs.init_repos_from_container(&repos)?; let tar = container.tar("/var/cache/apk").await?; dbs.import_from_container(&tar)?; } info!("Resolving dependencies..."); let initial_packages = detect_installed(container).await?; // upgrade and install container .exec(&["apk", "upgrade"], container::Exec::default()) .await?; let mut cmd = vec!["apk", "add", "--"]; for dep in &manifest.dependencies { cmd.push(dep.as_str()); } container.exec(&cmd, container::Exec::default()).await?; // detect dependencies let packages_afterwards = detect_installed(container).await?; let new_packages = packages_afterwards.difference(&initial_packages); info!("Calculating package checksums..."); let client = http::Client::new()?; let alpine_cache_dir = paths::alpine_cache_dir()?; for pkg_identifier in new_packages { let pkg = dbs.get(pkg_identifier)?; debug!("Detected dependency: {pkg:?}"); let url = format!( "{}/{}/{}-{}.apk", pkg.repo_url, pkg.arch, pkg.name, pkg.version ); let sha256 = if let Some(sha256) = alpine_cache_dir.sha1_read_link(&pkg.checksum).await? { sha256 } else { let mut buf = Vec::new(); let mut response = client .request(&url) .await .with_context(|| anyhow!("Failed to download package from url: {:?}", url))?; let mut sha256 = Sha256::new(); while let Some(chunk) = response .chunk() .await .context("Failed to read from download stream")? { buf.extend(&chunk); sha256.update(&chunk); } let sha256 = hex::encode(sha256.finalize()); let sha1 = hex::encode(&calculate_checksum_for_apk(&buf)?); if sha1 != pkg.checksum { bail!("Downloaded package (checksum={sha1:?} does not match checksum in APKINDEX (checksum={:?})", pkg.checksum ); } let (sha1_path, sha256_path) = alpine_cache_dir.sha1_to_sha256(&pkg.checksum, &sha256)?; let parent = sha1_path .parent() .context("Failed to determine parent directory")?; fs::create_dir_all(parent).await.with_context(|| { anyhow!("Failed to create parent directories for file: {sha1_path:?}") })?; fs::symlink(sha256_path, sha1_path) .await .context("Failed to create sha1 symlink")?; sha256 }; // record provides if it mentions a dependency let mut provides = Vec::new(); for value in &pkg.provides { if manifest.dependencies.contains(value) { provides.push(value.to_string()); } } dependencies.push(PackageLock { name: pkg.name.to_string(), version: pkg.version.to_string(), system: "alpine".to_string(), url, provides, sha256, signature: None, installed: false, }); } Ok(()) } pub async fn resolve( update: &args::Update, manifest: &PackagesManifest, container: &ContainerLock, dependencies: &mut Vec, ) -> Result<()> { let container = Container::create( &container.image, container::Config { mounts: &[], expose_fuse: false, }, ) .await?; container .run( resolve_dependencies(&container, manifest, dependencies), update.keep, ) .await } #[cfg(test)] mod tests { use super::*; #[test] fn test_checksum_from_apk() -> Result<()> { let checksum = decode_apk_checksum("Q10cGs1h9J5440p6BRXhZC8FO7pVg=")?; let calculated = calculate_checksum_for_apk(crate::test_data::ALPINE_APK_EXAMPLE)?; assert_eq!(checksum, calculated); Ok(()) } } repro-env-0.4.0/src/resolver/archlinux.rs000064400000000000000000000343041046102023000165410ustar 00000000000000use crate::args; use crate::container::{self, Container}; use crate::errors::*; use crate::lockfile::{ContainerLock, PackageLock}; use crate::manifest::PackagesManifest; use flate2::read::GzDecoder; use std::collections::{HashMap, HashSet}; use std::io::Read; #[derive(Debug, Default, PartialEq)] pub struct Package { pub values: HashMap>, } impl Package { pub fn parse(buf: &str) -> Result { let mut pkg = Self::default(); let mut lines = buf.lines(); while let Some(section) = lines.next() { let mut values = Vec::new(); for line in &mut lines { if line.is_empty() { break; } values.push(line.to_string()); } pkg.values.insert(section.to_string(), values); } Ok(pkg) } pub fn add_values(&mut self, key: &str, values: &[&str]) { let values = values.iter().map(|s| s.to_string()).collect(); self.values.insert(key.to_string(), values); } pub fn single_value(&self, key: &str) -> Result<&str> { let values = self .values .get(key) .with_context(|| anyhow!("Failed to find key in package metadata: {key:?}"))?; let mut values = values.iter(); let value = values .next() .with_context(|| anyhow!("No value available for {key:?}"))?; if let Some(trailing) = values.next() { bail!("Unexpected trailing value in {key:?}: {trailing:?}"); } Ok(value) } pub fn name(&self) -> Result<&str> { self.single_value("%NAME%") } pub fn archive_url(&self) -> Result { let filename = self.single_value("%FILENAME%")?; let pkgname = self.name()?; let idx = pkgname .chars() .next() .context("Name for package is empty")?; Ok(format!( "https://archive.archlinux.org/packages/{idx}/{pkgname}/{filename}" )) } pub fn sha256(&self) -> Result<&str> { self.single_value("%SHA256SUM%") } pub fn signature(&self) -> Result<&str> { self.single_value("%PGPSIG%") } } #[derive(Debug, Default)] pub struct DatabaseCache { imported_repositories: HashSet, packages: HashMap, } impl DatabaseCache { pub fn has_repo(&self, repo: &str) -> bool { self.imported_repositories.contains(repo) } pub fn import_repo(&mut self, repo: &str, buf: &[u8]) -> Result<()> { let d = GzDecoder::new(buf); let mut tar = tar::Archive::new(d); for entry in tar.entries()? { let mut entry = entry?; if entry.header().entry_type() == tar::EntryType::Regular { let mut buf = String::new(); trace!("Reading package from archive: {:?}", entry.path()); entry .read_to_string(&mut buf) .context("Failed to read database entry")?; let pkg = Package::parse(&buf).context("Failed to parse database entry as package")?; self.packages.insert(pkg.name()?.to_string(), pkg); } } self.imported_repositories.insert(repo.to_string()); Ok(()) } pub fn get_package(&self, name: &str) -> Result<&Package> { self.packages .get(name) .context("Failed to find package in any database: {name:?}") } } pub async fn resolve_dependencies( container: &Container, manifest: &PackagesManifest, dependencies: &mut Vec, ) -> Result<()> { info!("Syncing package datatabase..."); container .exec(&["pacman", "-Sy"], container::Exec::default()) .await?; info!("Resolving dependencies..."); let mut cmd = vec![ "pacman", "-Sup", "--noconfirm", "--print-format", "%r %n %v", "--", ]; for dep in &manifest.dependencies { cmd.push(dep.as_str()); } let buf = container .exec( &cmd, container::Exec { capture_stdout: true, ..Default::default() }, ) .await?; let buf = String::from_utf8(buf).context("Failed to decode pacman output as utf8")?; let mut dbs = DatabaseCache::default(); for line in buf.lines() { let mut line = line.split(' '); let repo = line.next().context("Missing repo in pacman output")?; let name = line.next().context("Missing pkg name in pacman output")?; let version = line.next().context("Missing version in pacman output")?; if let Some(trailing) = line.next() { bail!("Trailing data in pacman output: {trailing:?}"); } debug!("Detected dependency name={name:?} version={version:?} repo={repo:?}"); if !dbs.has_repo(repo) { let buf = container .cat(&format!("/var/lib/pacman/sync/{repo}.db")) .await?; dbs.import_repo(repo, &buf)?; } let pkg = dbs.get_package(name)?; // record provides if it mentions a dependency let mut provides = Vec::new(); for value in pkg.values.get("%PROVIDES%").into_iter().flatten() { if manifest.dependencies.contains(value) { provides.push(value.to_string()); } } dependencies.push(PackageLock { name: name.to_string(), version: version.to_string(), system: "archlinux".to_string(), url: pkg.archive_url()?, provides, sha256: pkg.sha256()?.to_string(), signature: Some(pkg.signature()?.to_string()), installed: false, }); } Ok(()) } pub async fn resolve( update: &args::Update, manifest: &PackagesManifest, container: &ContainerLock, dependencies: &mut Vec, ) -> Result<()> { let container = Container::create( &container.image, container::Config { mounts: &[], expose_fuse: false, }, ) .await?; container .run( resolve_dependencies(&container, manifest, dependencies), update.keep, ) .await } #[cfg(test)] mod tests { use super::*; use flate2::write::GzEncoder; #[test] fn parse_pkg_entry() -> Result<()> { let buf = r#"%FILENAME% zstd-1.5.5-1-x86_64.pkg.tar.zst %NAME% zstd %BASE% zstd %VERSION% 1.5.5-1 %DESC% Zstandard - Fast real-time compression algorithm %CSIZE% 493009 %ISIZE% 1500453 %MD5SUM% 2ba620ed7816b97bcad1a721a2a9f6c4 %SHA256SUM% 1891970afabc725e72c6a9bb2c127d906c1d3cc70309336fbe87adbd460c05b8 %PGPSIG% iQEzBAABCgAdFiEE5JnHn1PJalTlcv7hwGCGM3xQdz4FAmQ79ZMACgkQwGCGM3xQdz4V+Qf/Yz7Y+3WwSDKtspwcaEr3j95n1nN5+SAThl/OHe94WwmInDWV09GwM+Lrw6Y1RFDK1PI1ZLON3hOo/81udW0uCHJ4n0bnU/2x3B4UW82dcBqFBjiEqNEF1x6KcQGf9PE9seZndsiAxVzrbEH9u48RIHx0SuwWnzlryCoHPYTgYsPrpkH0IzLUerP2Lc8rjUR2eAKn6zoomb3mR74dPNMn2yx9gS0l+79EshQR8kWtOVvTv7xgRriWeJMBNoTTvDfiDq5B8395vPaBmSfrU0O3tvVF3eDAGtpxIb8hqfhtRqy3XqTcRrYaoj44KtJraGCbq5DrsImEdx5byS7qBhoheQ== %URL% https://facebook.github.io/zstd/ %LICENSE% BSD GPL2 %ARCH% x86_64 %BUILDDATE% 1681646714 %PACKAGER% Jelle van der Waa %PROVIDES% libzstd.so=1-64 %DEPENDS% glibc gcc-libs zlib xz lz4 %MAKEDEPENDS% cmake gtest ninja "#; let pkg = Package::parse(buf)?; assert_eq!(pkg.name()?, "zstd"); assert_eq!( pkg.archive_url()?, "https://archive.archlinux.org/packages/z/zstd/zstd-1.5.5-1-x86_64.pkg.tar.zst" ); assert_eq!( pkg.sha256()?, "1891970afabc725e72c6a9bb2c127d906c1d3cc70309336fbe87adbd460c05b8" ); assert_eq!(pkg.signature()?, "iQEzBAABCgAdFiEE5JnHn1PJalTlcv7hwGCGM3xQdz4FAmQ79ZMACgkQwGCGM3xQdz4V+Qf/Yz7Y+3WwSDKtspwcaEr3j95n1nN5+SAThl/OHe94WwmInDWV09GwM+Lrw6Y1RFDK1PI1ZLON3hOo/81udW0uCHJ4n0bnU/2x3B4UW82dcBqFBjiEqNEF1x6KcQGf9PE9seZndsiAxVzrbEH9u48RIHx0SuwWnzlryCoHPYTgYsPrpkH0IzLUerP2Lc8rjUR2eAKn6zoomb3mR74dPNMn2yx9gS0l+79EshQR8kWtOVvTv7xgRriWeJMBNoTTvDfiDq5B8395vPaBmSfrU0O3tvVF3eDAGtpxIb8hqfhtRqy3XqTcRrYaoj44KtJraGCbq5DrsImEdx5byS7qBhoheQ=="); assert!(pkg.single_value("%DEPENDS%").is_err()); let mut expected = Package::default(); expected.add_values("%FILENAME%", &["zstd-1.5.5-1-x86_64.pkg.tar.zst"]); expected.add_values("%NAME%", &["zstd"]); expected.add_values("%BASE%", &["zstd"]); expected.add_values("%VERSION%", &["1.5.5-1"]); expected.add_values( "%DESC%", &["Zstandard - Fast real-time compression algorithm"], ); expected.add_values("%CSIZE%", &["493009"]); expected.add_values("%ISIZE%", &["1500453"]); expected.add_values("%MD5SUM%", &["2ba620ed7816b97bcad1a721a2a9f6c4"]); expected.add_values( "%SHA256SUM%", &["1891970afabc725e72c6a9bb2c127d906c1d3cc70309336fbe87adbd460c05b8"], ); expected.add_values("%PGPSIG%", &[ "iQEzBAABCgAdFiEE5JnHn1PJalTlcv7hwGCGM3xQdz4FAmQ79ZMACgkQwGCGM3xQdz4V+Qf/Yz7Y+3WwSDKtspwcaEr3j95n1nN5+SAThl/OHe94WwmInDWV09GwM+Lrw6Y1RFDK1PI1ZLON3hOo/81udW0uCHJ4n0bnU/2x3B4UW82dcBqFBjiEqNEF1x6KcQGf9PE9seZndsiAxVzrbEH9u48RIHx0SuwWnzlryCoHPYTgYsPrpkH0IzLUerP2Lc8rjUR2eAKn6zoomb3mR74dPNMn2yx9gS0l+79EshQR8kWtOVvTv7xgRriWeJMBNoTTvDfiDq5B8395vPaBmSfrU0O3tvVF3eDAGtpxIb8hqfhtRqy3XqTcRrYaoj44KtJraGCbq5DrsImEdx5byS7qBhoheQ=="]); expected.add_values("%URL%", &["https://facebook.github.io/zstd/"]); expected.add_values("%LICENSE%", &["BSD", "GPL2"]); expected.add_values("%ARCH%", &["x86_64"]); expected.add_values("%BUILDDATE%", &["1681646714"]); expected.add_values("%PACKAGER%", &["Jelle van der Waa "]); expected.add_values("%PROVIDES%", &["libzstd.so=1-64"]); expected.add_values("%DEPENDS%", &["glibc", "gcc-libs", "zlib", "xz", "lz4"]); expected.add_values("%MAKEDEPENDS%", &["cmake", "gtest", "ninja"]); assert_eq!(pkg, expected); Ok(()) } #[test] fn test_database_cache_import() -> Result<()> { let mut db = DatabaseCache::default(); assert!(!db.has_repo("core")); let data = { let mut tar = tar::Builder::new(GzEncoder::new(Vec::new(), flate2::Compression::default())); let data = br#"%FILENAME% rust-1:1.70.0-1-x86_64.pkg.tar.zst %NAME% rust %BASE% rust %VERSION% 1:1.70.0-1 %DESC% Systems programming language focused on safety, speed and concurrency %CSIZE% 90509601 %ISIZE% 483950051 %MD5SUM% a8498a6e40c64d7b08d493133941e918 %SHA256SUM% 8d018b14d2226d76ee46ecd6e28f51ddfa7bfd930463e517eabd5d86f8a17851 %PGPSIG% iIsEABYIADMWIQQGaHodnU+rCLUP2Ss7lKgOUKR3xwUCZHkDRRUcaGVmdGlnQGFyY2hsaW51eC5vcmcACgkQO5SoDlCkd8eCrQEA8y2X/SVbHhchDdfBUp+KBOFoqN63haT6TNq7MIFDvXoA/AwzQe1rwL0RfvxMh130A2wzrid77YXTOjk36QHPmGIL %URL% https://www.rust-lang.org/ %LICENSE% Apache MIT %ARCH% x86_64 %BUILDDATE% 1685646983 %PACKAGER% Jan Alexander Steffens (heftig) %REPLACES% cargo cargo-tree rust-docs<1:1.56.1-3 rustfmt %CONFLICTS% cargo rust-docs<1:1.56.1-3 rustfmt %PROVIDES% cargo rustfmt %DEPENDS% curl gcc gcc-libs libssh2 llvm-libs %OPTDEPENDS% gdb: rust-gdb script lldb: rust-lldb script %MAKEDEPENDS% cmake lib32-gcc-libs libffi lld llvm musl ninja perl python rust wasi-libc %CHECKDEPENDS% gdb procps-ng "#; let mut header = tar::Header::new_gnu(); header.set_path("rust-1:1.70.0-1/desc")?; header.set_size(data.len() as u64); header.set_cksum(); tar.append(&header, &data[..])?; tar.into_inner()?.finish()? }; db.import_repo("core", &data)?; assert!(db.has_repo("core")); let pkg = db.get_package("rust")?; let mut expected = Package::default(); expected.add_values("%FILENAME%", &["rust-1:1.70.0-1-x86_64.pkg.tar.zst"]); expected.add_values("%NAME%", &["rust"]); expected.add_values("%BASE%", &["rust"]); expected.add_values("%VERSION%", &["1:1.70.0-1"]); expected.add_values( "%DESC%", &["Systems programming language focused on safety, speed and concurrency"], ); expected.add_values("%CSIZE%", &["90509601"]); expected.add_values("%ISIZE%", &["483950051"]); expected.add_values("%MD5SUM%", &["a8498a6e40c64d7b08d493133941e918"]); expected.add_values( "%SHA256SUM%", &["8d018b14d2226d76ee46ecd6e28f51ddfa7bfd930463e517eabd5d86f8a17851"], ); expected.add_values("%PGPSIG%", &["iIsEABYIADMWIQQGaHodnU+rCLUP2Ss7lKgOUKR3xwUCZHkDRRUcaGVmdGlnQGFyY2hsaW51eC5vcmcACgkQO5SoDlCkd8eCrQEA8y2X/SVbHhchDdfBUp+KBOFoqN63haT6TNq7MIFDvXoA/AwzQe1rwL0RfvxMh130A2wzrid77YXTOjk36QHPmGIL"]); expected.add_values("%URL%", &["https://www.rust-lang.org/"]); expected.add_values("%LICENSE%", &["Apache", "MIT"]); expected.add_values("%ARCH%", &["x86_64"]); expected.add_values("%BUILDDATE%", &["1685646983"]); expected.add_values( "%PACKAGER%", &["Jan Alexander Steffens (heftig) "], ); expected.add_values( "%REPLACES%", &["cargo", "cargo-tree", "rust-docs<1:1.56.1-3", "rustfmt"], ); expected.add_values("%CONFLICTS%", &["cargo", "rust-docs<1:1.56.1-3", "rustfmt"]); expected.add_values("%PROVIDES%", &["cargo", "rustfmt"]); expected.add_values( "%DEPENDS%", &["curl", "gcc", "gcc-libs", "libssh2", "llvm-libs"], ); expected.add_values( "%OPTDEPENDS%", &["gdb: rust-gdb script", "lldb: rust-lldb script"], ); expected.add_values( "%MAKEDEPENDS%", &[ "cmake", "lib32-gcc-libs", "libffi", "lld", "llvm", "musl", "ninja", "perl", "python", "rust", "wasi-libc", ], ); expected.add_values("%CHECKDEPENDS%", &["gdb", "procps-ng"]); assert_eq!(pkg, &expected); Ok(()) } } repro-env-0.4.0/src/resolver/container.rs000064400000000000000000000014001046102023000165150ustar 00000000000000use crate::args; use crate::container; use crate::container::ImageRef; use crate::errors::*; use crate::lockfile::ContainerLock; use crate::manifest::Manifest; pub async fn resolve(args: &args::Update, manifest: &Manifest) -> Result { let image = manifest.container.image.clone(); if !args.no_pull { container::pull(&image).await?; } let resolved = container::inspect(&image).await?; let digest = &resolved.digest; let mut image_ref = image.parse::()?; image_ref.tag = None; image_ref.digest = Some(digest.to_string()); let pinned_image = image_ref.to_string(); info!("Resolved image reference {:?} to {:?}", image, pinned_image); Ok(ContainerLock { image: pinned_image, }) } repro-env-0.4.0/src/resolver/debian.rs000064400000000000000000000436361046102023000157760ustar 00000000000000use crate::args; use crate::container::{self, Container}; use crate::errors::*; use crate::http; use crate::lockfile::{ContainerLock, PackageLock}; use crate::manifest::PackagesManifest; use crate::paths; use serde::Deserialize; use sha1::Sha1; use sha2::{Digest, Sha256}; use std::collections::HashMap; use std::io::prelude::*; use std::io::Lines; use tokio::fs; #[derive(Debug, Deserialize)] pub struct JsonSnapshotInfo { pub result: Vec, } #[derive(Debug, Deserialize)] pub struct JsonSnapshotPkg { pub archive_name: String, pub first_seen: String, pub name: String, pub path: String, pub size: i64, } #[derive(Debug, Clone, PartialEq)] pub struct PkgEntry { name: String, version: String, provides: Vec, sha256: String, } #[derive(Debug, Default, PartialEq)] pub struct PkgDatabase { pkgs: HashMap, } impl PkgDatabase { pub fn import_lz4(&mut self, reader: R) -> Result<()> { let rdr = lz4_flex::frame::FrameDecoder::new(reader); self.import_lines_stream(rdr.lines()) } pub fn import_lines_stream(&mut self, mut lines: Lines) -> Result<()> { while let Some(line) = lines.next() { let line = line?; trace!("Found line in debian package database: {line:?}"); let Some(name) = line.strip_prefix("Package: ") else { bail!("Unexpected line in database (expected `Package: `): {line:?}") }; let mut version = None; let mut filename = None; let mut provides = Vec::new(); let mut sha256 = None; for line in &mut lines { let line = line?; trace!("Found line in debian package database: {line:?}"); if line.is_empty() { break; } else if let Some(value) = line.strip_prefix("Version: ") { version = Some(value.to_string()); } else if let Some(value) = line.strip_prefix("Filename: ") { let value = value .rsplit_once('/') .map(|(_, filename)| filename) .unwrap_or(value); filename = Some(value.to_string()); } else if let Some(value) = line.strip_prefix("Provides: ") { for entry in value.split(", ") { let (name, _) = entry.split_once(' ').unwrap_or((entry, "")); provides.push(name.to_string()); } } else if let Some(value) = line.strip_prefix("SHA256: ") { sha256 = Some(value.to_string()); } } let filename = filename.context("Package database entry is missing filename")?; let new = PkgEntry { name: name.to_string(), version: version.context("Package database entry is missing version")?, provides, sha256: sha256.context("Package database entry is missing sha256")?, }; let old = self.pkgs.insert(filename.to_string(), new.clone()); if let Some(old) = old { // it's only a problem if they differ if old != new { bail!("Filename is not unique in package database: filename={filename:?}, old={old:?}, new={new:?}"); } } } Ok(()) } pub fn import_tar(buf: &[u8]) -> Result { let mut tar = tar::Archive::new(buf); let mut db = Self::default(); for entry in tar.entries()? { let entry = entry?; let path = entry .header() .path() .context("Filename was not valid utf-8")?; let Some(extension) = path.extension() else { continue; }; if extension.to_str() == Some("lz4") { db.import_lz4(entry)?; } } Ok(db) } pub fn find_by_filename(&self, filename: &str) -> Result<&PkgEntry> { let entry = self .pkgs .get(filename) .context("Failed to find package database entry for: {filename:?}")?; Ok(entry) } pub fn find_by_apt_output(&self, line: &str) -> Result<(String, &PkgEntry)> { let mut line = line.split(' '); let url = line.next().context("Missing url in apt output")?; let filename = line.next().context("Missing filename in apt output")?; let _size = line.next().context("Missing size in apt output")?; let _md5sum = line.next().context("Missing md5sum in apt output")?; if let Some(trailing) = line.next() { bail!("Trailing data in apt output: {trailing:?}"); } let url = url.strip_prefix('\'').unwrap_or(url); let url = url.strip_suffix('\'').unwrap_or(url); debug!("Detected dependency filename={filename:?} url={url:?}"); let package = { let url = url .parse::() .context("Failed to parse as url")?; let filename = url .path_segments() .context("Failed to get path from url")? .last() .context("Failed to get filename from url")?; let filename = urlencoding::decode(filename).context("Failed to url decode filename")?; self.find_by_filename(&filename).with_context(|| { anyhow!("Failed to find package database entry for file: {filename:?}") })? }; Ok((url.to_string(), package)) } } pub async fn resolve_dependencies( container: &Container, manifest: &PackagesManifest, dependencies: &mut Vec, ) -> Result<()> { info!("Update package datatabase..."); container .exec(&["apt-get", "update"], container::Exec::default()) .await?; info!("Importing package database..."); let tar = container.tar("/var/lib/apt/lists").await?; let db = PkgDatabase::import_tar(&tar)?; info!("Resolving dependencies..."); let mut cmd = vec![ "apt-get", "-qq", "--print-uris", "--no-install-recommends", "upgrade", "--", ]; for dep in &manifest.dependencies { cmd.push(dep.as_str()); } let buf = container .exec( &cmd, container::Exec { capture_stdout: true, ..Default::default() }, ) .await?; let buf = String::from_utf8(buf).context("Failed to decode pacman output as utf8")?; let client = http::Client::new()?; let pkgs_cache_dir = paths::pkgs_cache_dir()?; for line in buf.lines() { let (url, package) = db.find_by_apt_output(line)?; let path = pkgs_cache_dir.sha256_path(&package.sha256)?; let buf = if path.exists() { fs::read(path).await? } else { let buf = client.fetch(&url).await?.to_vec(); let mut hasher = Sha256::new(); hasher.update(&buf); let result = hex::encode(hasher.finalize()); if result != package.sha256 { bail!( "Mismatch of sha256 checksum, expected={}, downloaded={}", package.sha256, result ); } buf }; let mut hasher = Sha1::new(); hasher.update(&buf); let sha1 = hex::encode(hasher.finalize()); let url = format!("https://snapshot.debian.org/mr/file/{sha1}/info"); let buf = client .fetch(&url) .await .context("Failed to lookup pkg hash on snapshot.debian.org")?; let info = serde_json::from_slice::(&buf) .context("Failed to decode snapshot.debian.org json response")?; let pkg = info .result .first() .context("Could not find package in any snapshots")?; let archive_name = &pkg.archive_name; let first_seen = &pkg.first_seen; let path = &pkg.path; let name = &pkg.name; let url = format!("https://snapshot.debian.org/archive/{archive_name}/{first_seen}{path}/{name}"); // record provides if it mentions a dependency let mut provides = Vec::new(); for value in &package.provides { if manifest.dependencies.contains(value) { provides.push(value.to_string()); } } dependencies.push(PackageLock { name: package.name.to_string(), version: package.version.to_string(), system: "debian".to_string(), url, provides, sha256: package.sha256.to_string(), signature: None, installed: false, }); } Ok(()) } pub async fn resolve( update: &args::Update, manifest: &PackagesManifest, container: &ContainerLock, dependencies: &mut Vec, ) -> Result<()> { let container = Container::create( &container.image, container::Config { mounts: &[], expose_fuse: false, }, ) .await?; container .run( resolve_dependencies(&container, manifest, dependencies), update.keep, ) .await } #[cfg(test)] mod tests { use super::*; use std::io::BufReader; #[test] fn test_pkg_database() -> Result<()> { let lz4 = { let mut w = lz4_flex::frame::FrameEncoder::new(Vec::new()); w.write_all(br#"Package: binutils-aarch64-linux-gnu Source: binutils Version: 2.40-2 Installed-Size: 19242 Maintainer: Matthias Klose Architecture: amd64 Replaces: binutils (<< 2.29-6), binutils-dev (<< 2.38.50.20220609-2) Depends: binutils-common (= 2.40-2), libbinutils (>= 2.39.50), libc6 (>= 2.36), libgcc-s1 (>= 4.2), libjansson4 (>= 2.14), libzstd1 (>= 1.5.2), zlib1g (>= 1:1.1.4) Suggests: binutils-doc (= 2.40-2) Breaks: binutils (<< 2.29-6), binutils-dev (<< 2.38.50.20220609-2) Description: GNU binary utilities, for aarch64-linux-gnu target Multi-Arch: allowed Homepage: https://www.gnu.org/software/binutils/ Description-md5: 102820197d11c3672c0cd4ce0becb720 Section: devel Priority: optional Filename: pool/main/b/binutils/binutils-aarch64-linux-gnu_2.40-2_amd64.deb Size: 3352924 MD5sum: 2c02fdb8d4455ace16be0bb922eb8502 SHA256: 3d6f64a7a4ed6d73719f8fa2e85fd896f58ff7f211a6683942ba93de690aaa66 Package: rustc Version: 1.63.0+dfsg1-2 Installed-Size: 7753 Maintainer: Debian Rust Maintainers Architecture: amd64 Replaces: libstd-rust-dev (<< 1.25.0+dfsg1-2~~) Depends: libc6 (>= 2.34), libgcc-s1 (>= 3.0), libstd-rust-dev (= 1.63.0+dfsg1-2), gcc, libc-dev, binutils (>= 2.26) Recommends: cargo (>= 0.64.0~~), cargo (<< 0.65.0~~), llvm-14 Suggests: lld-14, clang-14 Breaks: libstd-rust-dev (<< 1.25.0+dfsg1-2~~) Description: Rust systems programming language Multi-Arch: allowed Homepage: http://www.rust-lang.org/ Description-md5: 67ca6080eea53dc7f3cdf73bc6b8521e Section: rust Priority: optional Filename: pool/main/r/rustc/rustc_1.63.0+dfsg1-2_amd64.deb Size: 2612712 MD5sum: 5eaa6969388c512a206377bf813ab531 SHA256: 26dd439266153e38d3e6fbe0fe2dbbb41f20994afa688faa71f38427348589ed "#)?; w.finish()? }; let tar = { let mut tar = tar::Builder::new(Vec::new()); let mut header = tar::Header::new_gnu(); header.set_path("deb.debian.org_debian_dists_stable_main_binary-amd64_Packages.lz4")?; header.set_size(lz4.len() as u64); header.set_cksum(); tar.append(&header, &lz4[..])?; tar.into_inner()? }; let db = PkgDatabase::import_tar(&tar)?; let pkgs = { let mut pkgs = HashMap::new(); pkgs.insert( "binutils-aarch64-linux-gnu_2.40-2_amd64.deb".to_string(), PkgEntry { name: "binutils-aarch64-linux-gnu".to_string(), version: "2.40-2".to_string(), provides: vec![], sha256: "3d6f64a7a4ed6d73719f8fa2e85fd896f58ff7f211a6683942ba93de690aaa66" .to_string(), }, ); pkgs.insert( "rustc_1.63.0+dfsg1-2_amd64.deb".to_string(), PkgEntry { name: "rustc".to_string(), version: "1.63.0+dfsg1-2".to_string(), provides: vec![], sha256: "26dd439266153e38d3e6fbe0fe2dbbb41f20994afa688faa71f38427348589ed" .to_string(), }, ); pkgs }; assert_eq!(db, PkgDatabase { pkgs }); Ok(()) } #[test] fn test_pkg_database_apt_output_parser() -> Result<()> { let mut db = PkgDatabase::default(); db.pkgs.insert( "rustc_1.63.0+dfsg1-2_amd64.deb".to_string(), PkgEntry { name: "rustc".to_string(), version: "1.63.0+dfsg1-2".to_string(), provides: vec![], sha256: "26dd439266153e38d3e6fbe0fe2dbbb41f20994afa688faa71f38427348589ed" .to_string(), }, ); let result = db.find_by_apt_output("'http://deb.debian.org/debian/pool/main/r/rustc/rustc_1.63.0%2bdfsg1-2_amd64.deb' rustc_1.63.0+dfsg1-2_amd64.deb 2612712 MD5Sum:5eaa6969388c512a206377bf813ab531")?; assert_eq!( result, ( "http://deb.debian.org/debian/pool/main/r/rustc/rustc_1.63.0%2bdfsg1-2_amd64.deb" .to_string(), &PkgEntry { name: "rustc".to_string(), version: "1.63.0+dfsg1-2".to_string(), provides: vec![], sha256: "26dd439266153e38d3e6fbe0fe2dbbb41f20994afa688faa71f38427348589ed" .to_string(), } ) ); let result = db.find_by_apt_output("'http://deb.debian.org/debian/pool/main/n/non-existant/non-existant_1.2.3_amd64.deb' non-existant_1.2.3_amd64.deb 2612712 MD5Sum:5eaa6969388c512a206377bf813ab531"); assert!(result.is_err()); Ok(()) } #[test] fn test_parse_provides() -> Result<()> { let foo = BufReader::new(r#"Package: librust-repro-env-dev Source: rust-repro-env Version: 0.3.2-1 Installed-Size: 175 Maintainer: Debian Rust Maintainers Architecture: amd64 Provides: librust-repro-env+default-dev (= 0.3.2-1), librust-repro-env-0+default-dev (= 0.3.2-1), librust-repro-env-0-dev (= 0.3.2-1), librust-repro-env-0.3+default-dev (= 0.3.2-1), librust-repro-env-0.3-dev (= 0.3.2-1), librust-repro-env-0.3.2+default-dev (= 0.3.2-1), librust-repro-env-0.3.2-dev (= 0.3.2-1) Depends: librust-anyhow-1+default-dev (>= 1.0.71-~~), librust-ar-0.9+default-dev, librust-bytes-1+default-dev (>= 1.4.0-~~), librust-clap-4+default-dev, librust-clap-4+derive-dev, librust-clap-complete-4+default-dev, librust-clone-file-0.1+default-dev, librust-data-encoding-2+default-dev (>= 2.4.0-~~), librust-dirs-5+default-dev (>= 5.0.1-~~), librust-env-logger-0.10+default-dev, librust-fd-lock-3+default-dev, librust-flate2-1+default-dev (>= 1.0.26-~~), librust-hex-0.4+default-dev (>= 0.4.3-~~), librust-log-0.4+default-dev (>= 0.4.19-~~), librust-lz4-flex-0.11+default-dev (>= 0.11.1-~~), librust-lzma-rs-0.3+default-dev, librust-memchr-2+default-dev (>= 2.5.0-~~), librust-nix-0.26+sched-dev, librust-peekread-0.1+default-dev (>= 0.1.1-~~), librust-reqwest-0.11+rustls-tls-native-roots-dev (>= 0.11.18-~~), librust-reqwest-0.11+stream-dev (>= 0.11.18-~~), librust-reqwest-0.11+tokio-socks-dev (>= 0.11.18-~~), librust-ruzstd-0.4+default-dev, librust-serde-1+default-dev, librust-serde-1+derive-dev, librust-serde-json-1+default-dev, librust-sha1-0.10+default-dev (>= 0.10.5-~~), librust-sha2-0.10+default-dev (>= 0.10.7-~~), librust-tar-0.4+default-dev (>= 0.4.38-~~), librust-tempfile-3+default-dev (>= 3.6.0-~~), librust-tokio-1+default-dev, librust-tokio-1+fs-dev, librust-tokio-1+macros-dev, librust-tokio-1+process-dev, librust-tokio-1+rt-multi-thread-dev, librust-tokio-1+signal-dev, librust-toml-0.7+default-dev, librust-urlencoding-2+default-dev (>= 2.1.2-~~) Description: Dependency lockfiles for reproducible build environments 📦🔒 - Rust source code Multi-Arch: same Description-md5: 1023d39707057b0b09f9d6bf7deeb14e Section: utils Priority: optional Filename: pool/main/r/rust-repro-env/librust-repro-env-dev_0.3.2-1_amd64.deb Size: 40344 MD5sum: 4dafbbe511b9a068728930e6811a0bf0 SHA256: 2bb1befee1b89f0462b74d519be9b8c94c038d7f8a074d050d62985f47ec4164 "#.as_bytes()); let mut db = PkgDatabase::default(); db.import_lines_stream(foo.lines())?; let pkgs = { let mut pkgs = HashMap::new(); pkgs.insert( "librust-repro-env-dev_0.3.2-1_amd64.deb".to_string(), PkgEntry { name: "librust-repro-env-dev".to_string(), version: "0.3.2-1".to_string(), provides: vec![ "librust-repro-env+default-dev".to_string(), "librust-repro-env-0+default-dev".to_string(), "librust-repro-env-0-dev".to_string(), "librust-repro-env-0.3+default-dev".to_string(), "librust-repro-env-0.3-dev".to_string(), "librust-repro-env-0.3.2+default-dev".to_string(), "librust-repro-env-0.3.2-dev".to_string(), ], sha256: "2bb1befee1b89f0462b74d519be9b8c94c038d7f8a074d050d62985f47ec4164" .to_string(), }, ); pkgs }; assert_eq!(db, PkgDatabase { pkgs }); Ok(()) } } repro-env-0.4.0/src/resolver/mod.rs000064400000000000000000000021231046102023000153150ustar 00000000000000pub mod alpine; pub mod archlinux; pub mod container; pub mod debian; use crate::args; use crate::errors::*; use crate::lockfile::Lockfile; use crate::manifest::Manifest; pub async fn resolve(args: &args::Update, manifest: &Manifest) -> Result { let container = container::resolve(args, manifest).await?; let mut dependencies = Vec::new(); if let Some(packages) = &manifest.packages { match packages.system.as_str() { "alpine" => alpine::resolve(args, packages, &container, &mut dependencies).await?, "archlinux" => { archlinux::resolve(args, packages, &container, &mut dependencies).await? } "debian" => debian::resolve(args, packages, &container, &mut dependencies).await?, system => bail!("Unknown package system: {system:?}"), } } dependencies.sort_by(|a, b| { a.name .cmp(&b.name) .then(a.version.cmp(&b.version)) .then(a.system.cmp(&b.system)) }); Ok(Lockfile { container, packages: dependencies, }) } repro-env-0.4.0/src/test_data.rs000064400000000000000000000225441046102023000146560ustar 00000000000000pub const ALPINE_APK_EXAMPLE: &[u8] = &[ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0xd3, 0x0b, 0xf6, 0x74, 0xf7, 0xd3, 0x0b, 0x0a, 0x76, 0xd4, 0x4b, 0xcc, 0x29, 0xc8, 0xcc, 0x4b, 0xd5, 0x4d, 0x49, 0x2d, 0x4b, 0xcd, 0x71, 0xc8, 0xc9, 0x2c, 0x2e, 0x29, 0x86, 0x0a, 0xe5, 0x64, 0xe6, 0x95, 0x56, 0xe8, 0xe5, 0x17, 0xa5, 0xeb, 0x9a, 0x19, 0x9a, 0x99, 0xa6, 0xa6, 0x9a, 0x5a, 0xea, 0x15, 0x15, 0x27, 0xea, 0x15, 0x94, 0x26, 0x31, 0x10, 0x07, 0x0c, 0x80, 0xc0, 0xcc, 0xc4, 0x04, 0x4c, 0x03, 0x01, 0x3a, 0x6d, 0x08, 0x62, 0x1b, 0x9a, 0x98, 0x98, 0x99, 0x18, 0x9a, 0x99, 0x19, 0x9b, 0x03, 0xc5, 0x8d, 0x0c, 0x4c, 0x8c, 0x8d, 0x19, 0x14, 0x0c, 0x18, 0xe8, 0x00, 0x4a, 0x8b, 0x4b, 0x12, 0x8b, 0x14, 0x14, 0x18, 0x46, 0x28, 0xb0, 0x4e, 0xd3, 0xcb, 0x7b, 0x2e, 0x79, 0xed, 0xc7, 0x93, 0x73, 0x9a, 0x61, 0xa7, 0xc5, 0x17, 0xa5, 0x86, 0xeb, 0x45, 0xee, 0x30, 0xad, 0xba, 0x72, 0x73, 0xff, 0xdd, 0xee, 0xee, 0x87, 0xce, 0x57, 0xef, 0xd4, 0xa6, 0xcc, 0x48, 0x9b, 0xc7, 0x27, 0x65, 0x7d, 0xf2, 0xc7, 0xdb, 0x07, 0xba, 0x1e, 0x57, 0xa7, 0x86, 0x49, 0x57, 0xcd, 0xcf, 0x70, 0x55, 0xfb, 0xeb, 0x7e, 0x73, 0x55, 0x56, 0xca, 0x6d, 0x59, 0x6f, 0x26, 0xfb, 0xeb, 0x11, 0x72, 0x5f, 0x65, 0xa3, 0xba, 0x22, 0x33, 0x0e, 0x14, 0xbe, 0x4e, 0x3c, 0x68, 0xfd, 0x43, 0xed, 0x8c, 0x8b, 0x71, 0xf4, 0xaf, 0xb9, 0x0b, 0xd7, 0x44, 0x95, 0x7a, 0x74, 0x1c, 0x9e, 0x39, 0x4b, 0x59, 0xfa, 0xf5, 0xa1, 0x3d, 0xd3, 0x84, 0xf7, 0x5c, 0xcc, 0x95, 0x3d, 0xed, 0xfc, 0x61, 0x59, 0xe7, 0x99, 0x98, 0x1d, 0x7c, 0x0f, 0xf5, 0xac, 0xa7, 0x9e, 0x35, 0x12, 0x79, 0xf2, 0x75, 0xd9, 0xe9, 0xd9, 0x53, 0x1d, 0x2b, 0x2b, 0x4e, 0x4d, 0x8d, 0xd9, 0x59, 0x26, 0x53, 0xd6, 0x2b, 0x7e, 0x62, 0xf5, 0xc1, 0xc9, 0x6a, 0x4f, 0xb3, 0xa7, 0x55, 0x5d, 0xdb, 0x39, 0xfb, 0xbf, 0x6b, 0xb8, 0xf4, 0xa5, 0xa9, 0x0f, 0x66, 0x1c, 0x4c, 0x6b, 0xdb, 0x98, 0x90, 0xeb, 0xbd, 0x82, 0x6d, 0x5e, 0x50, 0xd2, 0x85, 0x29, 0xcb, 0xe7, 0xcf, 0x79, 0x72, 0x8b, 0x8f, 0x6d, 0xd9, 0x93, 0x03, 0xd6, 0x76, 0x47, 0xd9, 0x59, 0xd3, 0x74, 0x77, 0x6d, 0x5d, 0x75, 0xf2, 0xda, 0x8b, 0xfd, 0x09, 0x52, 0xb7, 0xe2, 0x3b, 0x72, 0xe6, 0x30, 0x9c, 0x5a, 0x58, 0xee, 0xe7, 0xd6, 0xf3, 0xf0, 0x81, 0xd8, 0x62, 0xf1, 0xaf, 0xe2, 0x71, 0x79, 0xa7, 0x12, 0x4f, 0x37, 0xf6, 0x25, 0x16, 0xca, 0xd7, 0x64, 0xd7, 0xd9, 0xfe, 0x5c, 0x73, 0xed, 0xca, 0x7c, 0x8d, 0x3f, 0x4f, 0xd6, 0x2d, 0xd8, 0x5d, 0xe1, 0x96, 0x27, 0xda, 0x2c, 0xbb, 0xa8, 0x41, 0x2f, 0x77, 0x35, 0x83, 0xcf, 0xb7, 0xad, 0x06, 0x0d, 0xc6, 0xab, 0xc2, 0x3a, 0x5f, 0xc5, 0x4a, 0xbb, 0x2f, 0xda, 0x55, 0xba, 0x76, 0xcb, 0x22, 0xb5, 0x1f, 0x67, 0xdc, 0x2d, 0x66, 0xec, 0x9b, 0xe1, 0x16, 0x70, 0xec, 0x43, 0xc2, 0xb2, 0xe7, 0xdb, 0x67, 0x71, 0xbf, 0xce, 0xd1, 0x3e, 0x70, 0x9d, 0x8d, 0x6b, 0xfd, 0xd5, 0xfd, 0x6c, 0xa5, 0xad, 0xfe, 0x33, 0xbb, 0xd7, 0xfd, 0x3b, 0x69, 0xa0, 0x53, 0x68, 0xdf, 0x7a, 0x6c, 0x86, 0xf8, 0xa1, 0xc2, 0xb8, 0xf9, 0x05, 0xba, 0x47, 0xa7, 0xfc, 0x54, 0x3d, 0x75, 0xf5, 0xd2, 0xc9, 0xb5, 0xde, 0xc7, 0x85, 0x67, 0x4c, 0x3b, 0xe2, 0x73, 0x38, 0xb5, 0xe5, 0xa5, 0x91, 0x4d, 0xc1, 0x19, 0x81, 0x0d, 0xe7, 0xed, 0xf6, 0x26, 0x17, 0x2d, 0xbb, 0xab, 0x50, 0x18, 0x79, 0xf1, 0x8a, 0x52, 0xed, 0xc2, 0xb2, 0x1b, 0xc6, 0x6b, 0xc5, 0x4f, 0xe6, 0x4d, 0xfe, 0x98, 0xbe, 0xc1, 0xbf, 0x82, 0x6d, 0x3d, 0xf3, 0xc9, 0xe5, 0xcb, 0x0c, 0xac, 0xd9, 0x82, 0x57, 0x46, 0x1c, 0x3c, 0x77, 0x9b, 0x5f, 0xe4, 0xb5, 0x28, 0xdb, 0x84, 0x05, 0xf3, 0xbd, 0x67, 0xcd, 0xfb, 0xd7, 0x58, 0xee, 0x21, 0x60, 0x98, 0x9c, 0x6b, 0xc5, 0xf3, 0x33, 0x20, 0x40, 0xf8, 0x25, 0x5f, 0x95, 0xfd, 0xca, 0x33, 0xa7, 0x76, 0xd9, 0x9d, 0x89, 0x0f, 0xab, 0xc8, 0x6b, 0x3d, 0x55, 0xae, 0x7c, 0xe3, 0xd1, 0xbc, 0xb0, 0xfd, 0xe6, 0x8b, 0xe6, 0x3e, 0xbc, 0xb5, 0x8f, 0x7f, 0x7b, 0xd8, 0x8a, 0x3b, 0xb7, 0x7c, 0x6e, 0x4e, 0x37, 0xe1, 0x62, 0xfb, 0xf8, 0x8b, 0xe9, 0xd1, 0x9f, 0x2b, 0x8f, 0xca, 0xa7, 0x7b, 0xca, 0xf7, 0x7c, 0x72, 0x78, 0xa0, 0xf7, 0x40, 0xbe, 0x67, 0x7e, 0x61, 0xa9, 0xd2, 0xc2, 0x39, 0x6c, 0xdf, 0x4c, 0x66, 0xd5, 0x1c, 0x4c, 0xe3, 0x3f, 0x18, 0xf6, 0xfb, 0x92, 0x9b, 0xfc, 0x5d, 0xcf, 0xe4, 0xd0, 0x69, 0x67, 0x1e, 0x2d, 0xdb, 0x0c, 0x00, 0x91, 0x82, 0x74, 0x2c, 0x00, 0x04, 0x00, 0x00, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0xed, 0x55, 0x6d, 0x6b, 0xdb, 0x30, 0x10, 0xce, 0x67, 0xff, 0x0a, 0x41, 0x3f, 0xc7, 0x91, 0x64, 0x59, 0xb6, 0x43, 0x3b, 0xba, 0x15, 0xd6, 0x95, 0xd1, 0xae, 0x1f, 0xba, 0x1f, 0x70, 0x96, 0xe5, 0x54, 0x44, 0x96, 0x8c, 0x25, 0x97, 0xa4, 0xbf, 0x7e, 0xe7, 0x2c, 0xd0, 0x2d, 0x61, 0x6f, 0xb0, 0x15, 0xb6, 0xee, 0x01, 0x73, 0xc7, 0x73, 0xa7, 0x7b, 0xd1, 0xf9, 0x50, 0xba, 0xb8, 0x85, 0xcd, 0x3b, 0x0d, 0x8d, 0x1e, 0xc2, 0x22, 0xbd, 0x7d, 0x7f, 0x79, 0x75, 0xf3, 0xf6, 0xc3, 0xec, 0xf7, 0x82, 0x22, 0xa4, 0x10, 0x3b, 0x89, 0x38, 0x94, 0x94, 0x72, 0x39, 0x63, 0x42, 0x48, 0xc1, 0xa4, 0xcc, 0x0a, 0xe4, 0x19, 0x13, 0x54, 0xcc, 0xc8, 0x66, 0xf6, 0x0c, 0x18, 0x43, 0x84, 0x01, 0x4b, 0x99, 0xbd, 0x4c, 0x30, 0x46, 0x54, 0x34, 0x9d, 0x3e, 0xa3, 0x09, 0xaa, 0xb0, 0x57, 0x67, 0xff, 0xf1, 0x42, 0xf0, 0x87, 0x56, 0xfe, 0x57, 0xf6, 0x1f, 0x57, 0x5f, 0x1c, 0xec, 0x3f, 0x67, 0x28, 0x08, 0x7d, 0xce, 0xfd, 0x1f, 0xbc, 0x8f, 0xdf, 0xf3, 0xfb, 0x91, 0xfd, 0xb0, 0xb9, 0xbf, 0x04, 0x27, 0xe4, 0x52, 0x3b, 0x3d, 0x40, 0xd4, 0x0d, 0xa9, 0xb7, 0x04, 0xea, 0xd1, 0xd8, 0x86, 0x64, 0x29, 0x63, 0x29, 0x9b, 0x0f, 0x34, 0x39, 0x21, 0x63, 0x30, 0x6e, 0x45, 0x5a, 0x58, 0xeb, 0xe9, 0x0a, 0xc8, 0x03, 0x3e, 0x14, 0xc6, 0x3b, 0xc2, 0xd2, 0x8c, 0xa1, 0xf5, 0x1a, 0xd5, 0xd7, 0xe3, 0x8a, 0x90, 0x82, 0xb0, 0x6c, 0x49, 0xab, 0x25, 0xe3, 0xe4, 0xe3, 0xdd, 0x05, 0xe1, 0x94, 0x67, 0x49, 0xbf, 0x5e, 0x39, 0xe8, 0x34, 0x39, 0x23, 0x60, 0x7b, 0xe3, 0xf4, 0xbc, 0x86, 0xa0, 0x27, 0x16, 0x83, 0x20, 0x89, 0x59, 0xca, 0x34, 0x9b, 0xb2, 0x20, 0xd5, 0xe8, 0xa0, 0x90, 0xbb, 0xd6, 0x11, 0x48, 0x0f, 0x6a, 0x0d, 0x2b, 0x4d, 0x5a, 0x3f, 0x90, 0xce, 0x38, 0xd3, 0x81, 0xdd, 0x47, 0x20, 0xbb, 0x08, 0xe3, 0x60, 0xd1, 0xf5, 0x3e, 0xc6, 0x3e, 0x2c, 0x17, 0x8b, 0xcf, 0x16, 0x6b, 0xdc, 0xb8, 0x49, 0xfd, 0xb0, 0x4a, 0x76, 0x2d, 0x34, 0xd8, 0x11, 0xfa, 0x30, 0x59, 0x31, 0xc1, 0xb2, 0x22, 0xe7, 0xc9, 0x3e, 0xe8, 0x94, 0xf8, 0xcd, 0xe4, 0xe1, 0x1f, 0x51, 0x3f, 0xdd, 0x17, 0xd6, 0xe8, 0x07, 0x6d, 0xcf, 0xad, 0x09, 0x31, 0xa4, 0x07, 0xf1, 0x5e, 0x25, 0xc1, 0x3c, 0x4e, 0xb1, 0x04, 0xad, 0x64, 0x02, 0x83, 0xba, 0x47, 0xdd, 0xf9, 0x49, 0x49, 0xfc, 0x60, 0x56, 0xc6, 0x1d, 0xf4, 0xa7, 0x7c, 0xd7, 0x99, 0x88, 0x64, 0x51, 0x8a, 0xac, 0xa5, 0xa5, 0x2c, 0xb3, 0xa6, 0x6d, 0xa9, 0xd2, 0xb2, 0xc8, 0x2a, 0xa1, 0xeb, 0xb2, 0xd6, 0xbc, 0xcd, 0xcb, 0x36, 0xaf, 0x4a, 0x49, 0x25, 0xab, 0xaa, 0xa4, 0x03, 0xe3, 0x22, 0x7e, 0xbb, 0xe2, 0x6e, 0x20, 0x82, 0x03, 0x6d, 0xc9, 0x85, 0xef, 0x81, 0x9c, 0x3a, 0x85, 0xe2, 0xfc, 0xa8, 0x26, 0x6b, 0x94, 0x76, 0x61, 0x2a, 0xeb, 0xfa, 0xea, 0x2e, 0x19, 0x74, 0x6f, 0x41, 0xe9, 0xf0, 0x75, 0x25, 0x16, 0xb6, 0x7e, 0x8c, 0x49, 0xa3, 0x7b, 0xed, 0x9a, 0x9f, 0x32, 0x29, 0xef, 0xda, 0x23, 0x72, 0xd0, 0x56, 0x4f, 0x7d, 0x3d, 0xf1, 0xfd, 0x7a, 0x1e, 0xbd, 0xb7, 0xe1, 0x89, 0xaa, 0xc7, 0xb0, 0xad, 0xfd, 0xe6, 0x88, 0x98, 0x77, 0x78, 0xb3, 0x73, 0x8f, 0xe4, 0xa0, 0x8e, 0x8d, 0xdf, 0xe2, 0xc3, 0x68, 0x9a, 0x27, 0xd6, 0x9a, 0x5a, 0xcd, 0xc7, 0x68, 0xbe, 0xcc, 0xb7, 0x3f, 0x79, 0x42, 0x60, 0x8c, 0xbe, 0xc3, 0x67, 0x4b, 0x81, 0xb5, 0x5b, 0xd2, 0xe8, 0xa8, 0x15, 0xfe, 0xca, 0xcb, 0x04, 0xe7, 0x0f, 0xf7, 0x10, 0xa6, 0x59, 0xb5, 0x05, 0x15, 0x4d, 0x41, 0x33, 0xa8, 0x54, 0xc9, 0x4b, 0xc9, 0x5b, 0x59, 0x32, 0x0a, 0x55, 0x55, 0x0b, 0xc9, 0xa5, 0xe0, 0x2c, 0x87, 0x8a, 0xe7, 0x79, 0xce, 0x25, 0x17, 0x80, 0xd3, 0x51, 0x5c, 0x30, 0xa0, 0x54, 0x15, 0x80, 0x53, 0xd3, 0xb5, 0xaa, 0xff, 0xe9, 0xd7, 0xf0, 0x13, 0xe6, 0x95, 0x32, 0x8e, 0x00, 0x0a, 0x00, 0x00, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0xed, 0xd3, 0x4d, 0x4a, 0x03, 0x31, 0x14, 0x07, 0xf0, 0xec, 0x8a, 0x05, 0x77, 0x2e, 0x5c, 0xce, 0x05, 0x9c, 0xbe, 0x4c, 0x32, 0x99, 0xc9, 0xa2, 0x60, 0x77, 0x85, 0x0a, 0x2d, 0x54, 0xb7, 0xc5, 0xcc, 0x24, 0x83, 0x52, 0x86, 0xc2, 0x7c, 0x40, 0xbd, 0x85, 0x1b, 0x4f, 0xe0, 0x01, 0x3c, 0x82, 0xd7, 0x10, 0x0f, 0xa1, 0x57, 0x30, 0x15, 0x37, 0x76, 0xd1, 0x22, 0xb4, 0x85, 0xe2, 0xff, 0xb7, 0x79, 0x2f, 0x1f, 0x8b, 0x17, 0xc8, 0x3f, 0xec, 0x4d, 0xcc, 0x72, 0xe8, 0x8c, 0x75, 0x55, 0xdd, 0x0b, 0x6d, 0x5b, 0x96, 0x0f, 0x6c, 0xd7, 0xc8, 0x53, 0x52, 0x7e, 0x57, 0x6f, 0xbd, 0x12, 0x17, 0x11, 0xe3, 0x52, 0x2a, 0xc9, 0x95, 0x12, 0x89, 0xdf, 0xe7, 0x7e, 0x45, 0x2c, 0x58, 0xb2, 0x03, 0x68, 0xeb, 0xc6, 0x54, 0x7e, 0x14, 0xf6, 0x3f, 0x71, 0x1e, 0xe4, 0xcd, 0x7d, 0xe9, 0xfa, 0xd4, 0xf5, 0xad, 0xf9, 0x69, 0x55, 0x1a, 0x0c, 0x26, 0xa3, 0x8b, 0xeb, 0xf1, 0xf8, 0x6a, 0x1a, 0xe6, 0x77, 0x2e, 0x9f, 0xd7, 0x6d, 0x19, 0x4e, 0x87, 0x03, 0xde, 0xb7, 0x46, 0x68, 0x23, 0x9c, 0x8b, 0x9d, 0xca, 0x64, 0x46, 0x56, 0x44, 0x71, 0x9c, 0x15, 0xae, 0xd0, 0xb1, 0x22, 0x9e, 0x6a, 0x32, 0x85, 0x4d, 0x29, 0x21, 0xdd, 0x65, 0x70, 0x04, 0xf6, 0x14, 0xf9, 0x3f, 0xe5, 0x7f, 0xd5, 0xff, 0xce, 0x7f, 0x22, 0x05, 0x67, 0xc1, 0x2a, 0x93, 0xfe, 0x1b, 0x46, 0x97, 0xec, 0x8c, 0xbd, 0xeb, 0xe7, 0x8f, 0xd9, 0x7c, 0x74, 0x1a, 0xdd, 0xbc, 0x7e, 0x3e, 0xdd, 0x9e, 0x3f, 0xbe, 0xbc, 0x75, 0x4e, 0x76, 0x9a, 0xff, 0x6a, 0xb1, 0x68, 0x36, 0xdd, 0xdb, 0x76, 0xbe, 0xfe, 0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x03, 0xf8, 0x02, 0xd7, 0x2b, 0xfd, 0xaf, 0x00, 0x28, 0x00, 0x00, ]; repro-env-0.4.0/src/update.rs000064400000000000000000000013271046102023000141640ustar 00000000000000use crate::args; use crate::container; use crate::errors::*; use crate::manifest::Manifest; use crate::resolver; use std::path::Path; use tokio::fs; pub async fn update(update: &args::Update) -> Result<()> { container::test_for_unprivileged_userns_clone().await?; let manifest_path = Path::new("repro-env.toml"); let lockfile_path = Path::new("repro-env.lock"); let manifest = Manifest::read_from_file(manifest_path).await?; let lockfile = resolver::resolve(update, &manifest).await?; trace!("Resolved manifest into lockfile: {lockfile:?}"); debug!("Updating dependency lockfile: {lockfile_path:?}"); let buf = lockfile.serialize()?; fs::write(lockfile_path, buf).await?; Ok(()) } repro-env-0.4.0/src/utils.rs000064400000000000000000000004221046102023000140350ustar 00000000000000use crate::errors::*; use flate2::bufread::GzDecoder; use std::io::{BufRead, Read}; pub fn read_gzip_to_end(reader: &mut R) -> Result> { let mut buf = Vec::new(); let mut gz = GzDecoder::new(reader); gz.read_to_end(&mut buf)?; Ok(buf) }