symmetryinvestments / dubproxy Goto Github PK
View Code? Open in Web Editor NEWA small library and cli to bypass code.dlang.org in a way transparent to dub
License: GNU Lesser General Public License v3.0
A small library and cli to bypass code.dlang.org in a way transparent to dub
License: GNU Lesser General Public License v3.0
much nicer for access to private repos, especially if it's being done automatically.
E.g. ./dubproxy -i codedlangorg.json -g xlsxd:3.2.5435
doesn't do anything, exit code 0.
I modify mylib and I add a tag:
$ git tag -a v2.0.2 -m "Fix release"
$ git tag
v0.1.0
v2.0.0
v2.0.1
v2.0.2
$ git push master origin --tags
Then:
dubproxy --overrideTree=yes -g mylib
nothing changes :
$ tree -L 1 ~/.dub/packages/mylib*
/home/dao/.dub/packages/mylib
/home/dao/.dub/packages/mylib-0.1.0
/home/dao/.dub/packages/mylib-2.0.0
/home/dao/.dub/packages/mylib-HEAD
/home/dao/.dub/packages/mylib-master
The I try:
$ dubproxy --overrideTree=yes -g mylib:2.0.2
(incidentally dubproxy --overrideTree -g mylib:2.0.2
does not work)
and also:
$ dubproxy -g mylib:2.0.2
but nothing changes again..
If I remove mylib:
$ rm -fr ~/.dub/packages/mylib*
it works:
$ tree -L 1 ~/.dub/packages/mylib*
...
/home/dao/.dub/packages/mylib-2.0.2
Thank you
$ dub build --config=cli
Fetching urld 2.1.1 (getting selected version)...
Performing "debug" build using /usr/bin/dmd for x86_64.
urld 2.1.1: building configuration "library"...
dubproxy 1.0.1+commit.4.gb7e021c: building configuration "cli"...
/usr/include/dlang/dmd/std/traits.d(4130,37): Deprecation: enum member `std.json.JSONType.NULL` is deprecated - Use .null_
/usr/include/dlang/dmd/std/traits.d-mixin-4111(4111,50): Deprecation: enum member `std.json.JSONType.NULL` is deprecated - Use .null_
/usr/include/dlang/dmd/std/traits.d(4128,17): Deprecation: enum member `std.json.JSONType.NULL` is deprecated - Use .null_
/usr/include/dlang/dmd/std/traits.d(4130,37): Deprecation: enum member `std.json.JSONType.STRING` is deprecated - Use .string
/usr/include/dlang/dmd/std/traits.d-mixin-4111(4111,52): Deprecation: enum member `std.json.JSONType.STRING` is deprecated - Use .string
/usr/include/dlang/dmd/std/traits.d(4128,17): Deprecation: enum member `std.json.JSONType.STRING` is deprecated - Use .string
/usr/include/dlang/dmd/std/traits.d(4130,37): Deprecation: enum member `std.json.JSONType.INTEGER` is deprecated - Use .integer
/usr/include/dlang/dmd/std/traits.d-mixin-4111(4111,53): Deprecation: enum member `std.json.JSONType.INTEGER` is deprecated - Use .integer
/usr/include/dlang/dmd/std/traits.d(4128,17): Deprecation: enum member `std.json.JSONType.INTEGER` is deprecated - Use .integer
.....
My environment:
$ dmd --version
DMD64 D Compiler v2.087.1
$ dub --version
DUB version 1.16.0, built on Jul 02 2019
Thank you.
I've created a simply library mylib with two tags
$ cd mylib
$ git tag
v0.1.0
v2.0.0
and a dubproxy file:
$ cat dubproxy.json
{
"packages" : {
"mylib" : "https://github.com/o3o/mylib.git"
}
}
Then:
$ dubproxy -g mylib
creates
/home/o3o/.dub/packages/mylib-0.1.0
/home/o3o/.dub/packages/mylib-2.0.0
/home/o3o/.dub/packages/mylib-HEAD
/home/o3o/.dub/packages/mylib-master
Well, I try to use mylib in myclient:
$ cd myclient
$ cat dub.sdl
name "myclient"
dependency "mylib" version="~>0.1.0"
when I build:
$ dub build
Invalid SemVer format: HEAD
So, I remove /home/o3o/.dub/packages/mylib-HEAD
$ rm -fr ~/.dub/packages/mylib-HEAD
$ dub build
Invalid SemVer format: master
Finally if I remove /home/o3o/.dub/packages/mylib-master
it works:
$ rm -fr ~/.dub/packages/mylib-master/
$ dub build
Performing "debug" build using dmd for x86_64.
mylib 0.1.0: building configuration "library"...
myclient ~master: building configuration "application"...
Linking...
Where am I wrong?
Thank you very much
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.