Skip to content

Explicit repository upload (2nd try)#11478

Merged
mergify[bot] merged 9 commits intohaskell:masterfrom
Kleidukos:explicit-repository-upload
Mar 15, 2026
Merged

Explicit repository upload (2nd try)#11478
mergify[bot] merged 9 commits intohaskell:masterfrom
Kleidukos:explicit-repository-upload

Conversation

@Kleidukos
Copy link
Copy Markdown
Member

@Kleidukos Kleidukos commented Feb 7, 2026

This PR adds option to specify remote repository.

In case the specified repository is not found in the configuration, or not specified when multiple repositories are configured, a helpful message is displayed to the user:

Error: cabal: Cannot determine a specific hackage repository. Please choose
one with --repository-name. Available repositories are: localhost,
hackage.haskell.org
$ cabal run -- cabal get  -R toto Cabal-syntax
Error: cabal: Cannot find chosen repository toto. Available repositories are:
localhost, hackage.haskell.org

Template Α: This PR modifies behaviour or interface

Include the following checklist in your PR:

@Kleidukos Kleidukos force-pushed the explicit-repository-upload branch 2 times, most recently from b4dcaf5 to e92d418 Compare February 20, 2026 16:28
@Kleidukos Kleidukos marked this pull request as ready for review February 20, 2026 16:44
@Kleidukos Kleidukos requested review from andreabedini, ffaf1, geekosaur and sheaf and removed request for andreabedini and geekosaur February 20, 2026 16:45
@Kleidukos Kleidukos force-pushed the explicit-repository-upload branch from e92d418 to 4848309 Compare February 20, 2026 16:52
@Kleidukos Kleidukos requested a review from Bodigrim February 20, 2026 16:52
@Kleidukos Kleidukos force-pushed the explicit-repository-upload branch 9 times, most recently from 519e6c1 to 6bb8a37 Compare February 25, 2026 21:43
@ulysses4ever ulysses4ever linked an issue Mar 11, 2026 that may be closed by this pull request
@Kleidukos Kleidukos force-pushed the explicit-repository-upload branch from 093440f to a49af62 Compare March 12, 2026 14:46
@Kleidukos Kleidukos added squash+merge me Tell Mergify Bot to squash-merge attention: needs-manual-qa PR is destined for manual QA pr: squash PR should be squashed upon merge and removed attention: needs-review labels Mar 13, 2026
@Kleidukos Kleidukos removed the pr: squash PR should be squashed upon merge label Mar 13, 2026
@mergify mergify Bot added ready and waiting Mergify is waiting out the cooldown period merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days queued labels Mar 13, 2026
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 15, 2026

Merge Queue Status

This pull request spent 1 hour 42 minutes 11 seconds in the queue, including 1 hour 30 minutes 59 seconds running CI.

Required conditions to merge
  • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
  • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
  • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
  • any of [🛡 GitHub branch protection]:
    • check-success = Doctest Cabal
    • check-neutral = Doctest Cabal
    • check-skipped = Doctest Cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Meta checks
    • check-neutral = Meta checks
    • check-skipped = Meta checks
  • any of [🛡 GitHub branch protection]:
    • check-success = docs/readthedocs.org:cabal
    • check-neutral = docs/readthedocs.org:cabal
    • check-skipped = docs/readthedocs.org:cabal
  • any of [🛡 GitHub branch protection]:
    • check-success = Validate post job
    • check-neutral = Validate post job
    • check-skipped = Validate post job
  • any of [🛡 GitHub branch protection]:
    • check-success = fourmolu
    • check-neutral = fourmolu
    • check-skipped = fourmolu
  • any of [🛡 GitHub branch protection]:
    • check-success = hlint
    • check-neutral = hlint
    • check-skipped = hlint
  • any of [🛡 GitHub branch protection]:
    • check-success = Bootstrap post job
    • check-neutral = Bootstrap post job
    • check-skipped = Bootstrap post job
  • any of [🛡 GitHub branch protection]:
    • check-success = whitespace
    • check-neutral = whitespace
    • check-skipped = whitespace
  • any of [🛡 GitHub branch protection]:
    • check-success = Check sdist post job
    • check-neutral = Check sdist post job
    • check-skipped = Check sdist post job
  • any of [🛡 GitHub branch protection]:
    • check-success = Changelogs
    • check-neutral = Changelogs
    • check-skipped = Changelogs

mergify Bot added a commit that referenced this pull request Mar 15, 2026
@mergify mergify Bot merged commit beba231 into haskell:master Mar 15, 2026
288 of 289 checks passed
@github-project-automation github-project-automation Bot moved this from Waiting to To Test in Manual QA board Mar 15, 2026
@mergify mergify Bot removed the queued label Mar 15, 2026
@ulysses4ever
Copy link
Copy Markdown
Collaborator

This is certainly significant for the changelog purposes

zlonast pushed a commit to zlonast/cabal that referenced this pull request Mar 17, 2026
* Enable uploading to a specified repository

Authored-by: David Turnbull <david@broodax.net>

* CLI reference

* Changelog entry

* Add the same feature to `cabal get` and print helpful message upon repostiory selection failure

* Try to specify `get`'s repository in the tests.

* Try to specify `get`'s repository in the tests.

* Use an explicit config file to specify hackage

* Fix repo filtering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attention: needs-manual-qa PR is destined for manual QA merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days ready and waiting Mergify is waiting out the cooldown period squash+merge me Tell Mergify Bot to squash-merge

Projects

Status: To Test

Development

Successfully merging this pull request may close these issues.

Specify remote repository target with cabal upload

4 participants