Visitar URL original
Add a cabal vendor command by philderbeast · Pull Request #12522 · haskell/cabal · GitHub
Skip to content

Add a cabal vendor command - #12522

Open
philderbeast wants to merge 84 commits into
haskell:masterfrom
cabalism:add/vendor-command
Open

philderbeast wants to merge 84 commits into
haskell:masterfrom
cabalism:add/vendor-command

Conversation

@philderbeast

@philderbeast philderbeast commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #10934. Fixes #10935.

I'll squash commits before applying the merge label if this pull request is approved.

Note

cabal vendor accepts --offline like every project command but does not act on it yet: the flag is only consulted in the build phase, which vendor does not run, so a tarball missing from the download cache is still downloaded. Making cabal vendor --offline refuse the download, as cabal build --offline does, is left for a follow-on PR that should look at --only-download behaviour too (this flag is currently ignored).

QA notes

In a project with Hackage dependencies, run cabal vendor, add the printed stanza to cabal.project, point remote-repo-cache at an empty directory or remove ~/.cache/cabal/packages, and check that cabal build --offline succeeds.

Check that cabal vendor --dry-run writes nothing, that cabal vendor some-dep vendors only that package and prints active-repositories: :rest, vendored:override, and that running cabal vendor again with the stanza in place succeeds and leaves the directory unchanged.


Comment thread doc/cabal-commands.rst Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a cabal vendor command Proper way to vendor dependencies?

2 participants