Git Product home page Git Product logo

dubproxy's Issues

Json deprecation

$ 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.

Invalid SemVer format

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

dubproxy doesn't upgrade version

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

support for ssh URLs

much nicer for access to private repos, especially if it's being done automatically.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.