Open imikim opened 3 years ago
Note that you can use
Pkg.add(url = "https://username@bitbucket.org/orgname/reponame.git", rev = "dev")
Quoting should work in the Pkg REPL too:
(@v1.5) pkg> add "https://username@bitbucket.org/orgname/reponame.git#dev"
Introduced by #1936, should probably allow special characters #
and @
after .git
too.
Quoting should work in the Pkg REPL too:
(@v1.5) pkg> add "https://username@bitbucket.org/orgname/reponame.git#dev"
this did not work for me, albeit with a different error (ERROR: failed to clone from https://username@bitbucket.org/orgname/reponame.git#dev, error: GitError(Code:ERROR, Class:Net, unexpected HTTP status code: 404))
The Pkg.add(url = "", rev="")
did work
Maybe
add "https://username@bitbucket.org/orgname/reponame.git"#dev
It would be nice if pasting a link from github also worked. E.g.
add https://github.com/user/Package.jl/tree/branch_id
now fails with
ERROR: failed to clone from https://github.com/user/Package.jl/tree/branch_id, error: GitError(Code:ERROR, Class:HTTP, unexpected http status code: 404)
"Weird" systems like Azure DevOps (which don't have .git
in the end) is also broken - by default - even Pkg.add(PackageSpec(; url=..., rev=...))
fails.
It would be nice, if the default SSH URL form, username@vs-ssh.visualstudio.com:v3/username/project/repo
, were identified as a URL and not a path.
For the record, the following likely-deprecated-likely-not-documented Azure DevOps URL work: git@ssh.dev.azure.com:v3/username/project/repo
Also, ssh://user@vs-ssh.visualstudio.com/v3/user/project/repo
works (note the /
in front of v3
)
Since julia 1.5.2, adding a package with a specific branch fails:
In julia 1.5.1, it works fine. (It is a private repo, if that matters). Without specifying the branch, it works fine on any version (1.5.1, 1.5.2, 1.5.3)
The versions stated are julia versions and the Pkg used is the bundled one.
The error in julia 1.5.2 and 1.5.3 is: