On 2/16/20 9:01 AM, Robert M. Münch wrote:
I want to use a specific branch version if a package. I specified the branch version in a dub.selections.json file.

But it seems that dub requires a ZIP file that can be downloaded from code.dlang.org, which of course fails because the branch is only available on github.

Fetching rtree ~fix-#3 (getting selected version)...
Downloading https://code.dlang.org/packages/rtree/~fix-#3.zip failed with 404 (Not Found).

How am I supposed to switch to a branch version of a package to try a bug-fix version for example?


git clone that branch to a local repository.

dub add-local . in that repository. It will say something like "adding v1.0.1+commit..." then you mark your project as requiring ~> v1.0.1, and it will pick your local repository.

When you are done, make sure to dub remove-local that repository so it stops trying to grab your local copy.

-Steve

Reply via email to