pax_global_header 0000666 0000000 0000000 00000000064 14557017051 0014517 g ustar 00root root 0000000 0000000 52 comment=0d4858eb473a31a058132c8692d499effdb1cb28 dub-1.36.0/ 0000775 0000000 0000000 00000000000 14557017051 0012360 5 ustar 00root root 0000000 0000000 dub-1.36.0/.codecov.yml 0000664 0000000 0000000 00000001700 14557017051 0014601 0 ustar 00root root 0000000 0000000 # Documentation: https://docs.codecov.io/docs/codecov-yaml # Validate with: `curl --data-binary @.codecov.yml https://codecov.io/validate` codecov: notify: # We don't want to wait for the CodeCov report # See https://github.com/codecov/support/issues/312 require_ci_to_pass: false after_n_builds: 1 # send notifications after the first upload wait_for_ci: false bot: dlang-bot # At Travis, the PR is merged into `master` before the testsuite is run. # This allows CodeCov to adjust the resulting coverage diff, s.t. it matches # with the GitHub diff. # https://github.com/codecov/support/issues/363 # https://docs.codecov.io/v4.3.6/docs/comparing-commits allow_coverage_offsets: true coverage: precision: 3 round: down range: "80...100" # Learn more at https://docs.codecov.io/docs/commit-status status: project: off changes: off patch: default: informational: true comment: false dub-1.36.0/.dockerignore 0000664 0000000 0000000 00000000224 14557017051 0015032 0 ustar 00root root 0000000 0000000 # Build files are ignored to avoid collision and large context # in the event someone hasn't run `dub clean` for a while *.a *.o .dub/ test/*/.dub/ dub-1.36.0/.editorconfig 0000664 0000000 0000000 00000000244 14557017051 0015035 0 ustar 00root root 0000000 0000000 root = true [*.{c,h,d,di,dd,json}] end_of_line = lf insert_final_newline = true indent_style = tab indent_size = 4 trim_trailing_whitespace = true charset = utf-8 dub-1.36.0/.github/ 0000775 0000000 0000000 00000000000 14557017051 0013720 5 ustar 00root root 0000000 0000000 dub-1.36.0/.github/issue_template.md 0000664 0000000 0000000 00000001111 14557017051 0017257 0 ustar 00root root 0000000 0000000 ### System information - **dub version**: (e.g. dub 1.3.0) - **OS Platform and distribution**: (e.g. Windows 10, Linux Ubuntu 16.04) - **compiler version** (e.g. dmd-2.074.1) ### Bug Description ### How to reproduce? ### Expected Behavior ### Logs dub-1.36.0/.github/workflows/ 0000775 0000000 0000000 00000000000 14557017051 0015755 5 ustar 00root root 0000000 0000000 dub-1.36.0/.github/workflows/alpine.yml 0000664 0000000 0000000 00000002170 14557017051 0017750 0 ustar 00root root 0000000 0000000 # Build dub on Alpine Linux, testing compatibility with Musl name: Alpine on: pull_request: branches: - master - stable paths-ignore: - 'changelog/**' push: branches: - master - stable # Use this branch name in your fork to test changes - github-actions jobs: main: name: Run strategy: # Default, disable if you want to debug fail-fast: false matrix: include: # Disabled as we rely on DIP1000 `foreach (scope)` which GDC < 12 doesn't support # - { dc: gdc, dcpkg: gcc-gdc, dcbin: gdc } - { dc: ldc, dcpkg: ldc, dcbin: ldc2 } - { dc: dmd, dcpkg: dmd, dcbin: dmd } # OS doesn't matter, we just need Docker runs-on: ubuntu-latest steps: # Checkout the repository - name: Checkout uses: actions/checkout@v3 - name: Build run: | docker build -t alpine-dub-image \ --build-arg="DCPKG=${{ matrix.dcpkg}}" \ --build-arg="DCBIN=${{ matrix.dcbin}}" \ -f docker/Dockerfile.alpine $(pwd) - name: Test run: docker run alpine-dub-image dub-1.36.0/.github/workflows/main.yml 0000664 0000000 0000000 00000006660 14557017051 0017434 0 ustar 00root root 0000000 0000000 # Cross platform tests for DUB name: Testsuite # Only triggers on pushes to master & stable, as well as PR to master and stable # Sometimes reverts appear in the upstream repository (e.g. when the revert button # is clicked by a contributor with commit access), this should be tested as PR). # # Also note that Github actions does not retrigger on target branch changes, # hence the check on push. on: pull_request: branches: - master - stable paths-ignore: - 'changelog/**' push: branches: - master - stable # Use this branch name in your fork to test changes - github-actions jobs: main: name: Run strategy: # Default, disable if you want to debug fail-fast: false matrix: # Latest stable version, update at will os: [ macOS-11, ubuntu-20.04, windows-2019 ] dc: - dmd-latest - dmd-2.100.2 - ldc-latest - dmd-master # - ldc-master # This is the bootstrap compiler used to compile the releases - ldc-1.23.0 # Some intermediate compilers for good measure - dmd-2.095.1 - dmd-2.098.1 include: - { do_test: true } - { dc: dmd-2.095.1, do_test: false } - { dc: dmd-2.098.1, do_test: false } - { dc: ldc-1.23.0 , do_test: false } runs-on: ${{ matrix.os }} steps: # Install required dependencies - name: '[OSX] Install dependencies' if: runner.os == 'macOS' run: | brew install pkg-config coreutils echo "PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig/" >> $GITHUB_ENV - name: '[Linux] Install dependencies' if: runner.os == 'Linux' run: | sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev netcat # Compiler to test with - name: Prepare compiler uses: dlang-community/setup-dlang@v1 with: compiler: ${{ matrix.dc }} # Checkout the repository - name: Checkout uses: actions/checkout@v3 - name: '[POSIX] Test' if: runner.os != 'Windows' env: COVERAGE: false # The value doesn't matter as long as it's > 2.087 FRONTEND: 2.095.0 run: | dub build --compiler=${{ env.DC }} if [[ ${{ matrix.do_test }} == 'true' ]]; then dub run --compiler=${{ env.DC }} --single test/issue2051_running_unittests_from_dub_single_file_packages_fails.d ./scripts/ci/travis.sh fi - name: '[Windows] Test' if: runner.os == 'Windows' env: DUB: ${{ github.workspace }}\bin\dub.exe run: | dub build --compiler=${{ env.DC }} if [[ ${{ matrix.do_test }} == 'true' ]]; then dub test --compiler=${{ env.DC }} dub run --compiler=${{ env.DC }} --single test/issue2051_running_unittests_from_dub_single_file_packages_fails.d dub --single test/run-unittest.d # FIXME: DMD fails a few tests on Windows; remove them for now if [[ '${{ matrix.dc }}' = dmd* ]]; then # DLL support is lacking rm -rf test/{1-dynLib-simple,2-dynLib-dep,2-dynLib-with-staticLib-dep} # Unicode in paths too rm -rf test/issue130-unicode-СНА* # ImportC probably requires set-up MSVC environment variables rm -rf test/use-c-sources fi test/run-unittest.sh fi shell: bash dub-1.36.0/.github/workflows/pr_info_intro.yml 0000664 0000000 0000000 00000001440 14557017051 0021346 0 ustar 00root root 0000000 0000000 name: PR Info (pre-comment) on: # NOTE: high probability for security vulnerabilities if doing ANYTHING in # this file other than commenting something! pull_request_target: branches: - master - stable permissions: pull-requests: write jobs: intro_comment: name: Make intro comment runs-on: ubuntu-20.04 steps: - name: 'Prepare sticky comment' # commit of v2.5.0 # same one used again at the bottom of the file to update the comment. uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd with: message: | Thanks for your Pull Request and making D better! This comment will automatically be updated to summarize some statistics in a few minutes. only_create: true dub-1.36.0/.github/workflows/pr_info_post.yml 0000664 0000000 0000000 00000003045 14557017051 0021203 0 ustar 00root root 0000000 0000000 name: PR Info (comment) on: workflow_run: workflows: ["PR Info"] types: - completed permissions: pull-requests: write jobs: comment: name: PR Info runs-on: ubuntu-20.04 if: > github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' steps: # from https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ - name: 'Download artifact' uses: actions/github-script@v3.1.0 with: script: | var artifacts = await github.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: ${{github.event.workflow_run.id }}, }); var matchArtifact = artifacts.data.artifacts.filter((artifact) => { return artifact.name == "pr" })[0]; var download = await github.actions.downloadArtifact({ owner: context.repo.owner, repo: context.repo.repo, artifact_id: matchArtifact.id, archive_format: 'zip', }); var fs = require('fs'); fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data)); - run: unzip pr.zip - name: Set variable run: | PR_ID=$(cat ./NR) echo "PR_ID=$PR_ID" >> $GITHUB_ENV - name: Update GitHub comment uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd with: path: ./comment.txt number: ${{ env.PR_ID }} dub-1.36.0/.github/workflows/pr_info_untrusted.yml 0000664 0000000 0000000 00000003450 14557017051 0022253 0 ustar 00root root 0000000 0000000 name: PR Info # This workflow builds the whole project once and: # - comments build deprecations/warnings (highlighting new ones since last tested PR) on: pull_request: branches: - master - stable jobs: pr_info: name: PR Info runs-on: ubuntu-20.04 steps: # we first create a comment thanking the user in pr_info_intro.yml # (separate step due to needing GITHUB_TOKEN access) - name: '[Linux] Install dependencies' if: runner.os == 'Linux' run: | sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev netcat # Compiler to test with - name: Prepare compiler uses: dlang-community/setup-dlang@v1 with: compiler: ldc-latest - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Checkout old stuff, with new comment script run: | git checkout ${{ github.base_ref }} git checkout ${{ github.sha }} -- ./scripts/ci/summary_comment.sh ./scripts/ci/summary_comment_diff.sh # first dump old info - name: Check pre-PR status run: ./scripts/ci/summary_comment.sh | tee ../OLD_OUTPUT.txt - name: Checkout PR target run: | git checkout ${{ github.sha }} git clean -fd git reset --hard - name: Evaluate PR run: ./scripts/ci/summary_comment.sh | tee ../NEW_OUTPUT.txt - name: Generate comment run: ./scripts/ci/summary_comment_diff.sh ../OLD_OUTPUT.txt ../NEW_OUTPUT.txt | tee comment.txt - name: Prepare comment for upload run: | mkdir -p ./pr mv comment.txt pr echo ${{ github.event.number }} > ./pr/NR - name: upload comment to high-trust action making the comment uses: actions/upload-artifact@v2 with: name: pr path: pr/ dub-1.36.0/.gitignore 0000664 0000000 0000000 00000001244 14557017051 0014351 0 ustar 00root root 0000000 0000000 *.o *.obj *~ .dub .directory dub.selections.json docs.json __dummy.html # Ignore build files. /bin/dub /bin/__test__library-nonet__ /bin/__test__library__ /bin/dub-test-library /bin/libdub.a /bin/dub-* # Ignore files or directories created by the test suite. *.exe *.log # Ignore coverage files cov/ # Ignore auto-generated docs /docs scripts/man/dub*.1.gz # Ignore generated files for examples /examples/generated-sources/generated-sources /examples/generated-sources/source/test.d dub_test_root.sh.*/ test-cov-ctfe-test.lst test-unittest-cov-ctfe-source-mod.lst test-unittest-cov-ctfe-.dub-code-test-test-library-unittest-cov-ctfe-*-dub_test_root.lst example.yaml dub-1.36.0/ARCHITECTURE.md 0000664 0000000 0000000 00000002436 14557017051 0014571 0 ustar 00root root 0000000 0000000 ## Architecture  ## Terminology
dependency "vibe-d" version="~>0.8.1"
.