Code Monkey home page Code Monkey logo

dsemver's People

Contributors

9il avatar burner avatar drug007 avatar john-colvin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

drug007 9il

dsemver's Issues

No tags that match a semver found in '.'

To reproduce:

Output is:

DFLAGS=" -X -Xf=.dsemver/dsemver_latest.json" dub build
No tags that match a semver found in '.'

It seems the git tag aren't found, but there are a lot of them:

C:\Users\guill\Desktop\intel-intrinsics>git tag
v1.0.0
v1.0.1
v1.0.10
v1.0.11
v1.0.12
v1.0.13
v1.0.14
v1.0.15
v1.0.16
v1.0.17
v1.0.18
v1.0.19
v1.0.2
v1.0.20
v1.0.21
v1.0.22
v1.0.23
v1.0.24
v1.0.25
v1.0.26
v1.0.27
v1.0.28
v1.0.29
v1.0.3
v1.0.30
v1.0.31
v1.0.32
v1.0.4
v1.0.5

Couldn't find 'name'

When you have the following interface:

interface Foo {
  void Bla(Exception);
}

it crashed because the param has no name.

Support semver 0.y.z

Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable.

https://semver.org/#spec-item-4


In my use case I have an unstable API, but I'd still like to share it on dub.

Overloaded template symbols problem

if you have overloaded templated methods (probably it can be any templated symbols):

class Foo {
    auto aSymbol(T)(args1) {...}
    auto aSymbol(T)(args2) {...}

dmd issues that symbols separately as different entities (in json file) and dsemver fails because when it looks for aSymbol(args1) template in aSymbol(args2) template it fails obviously and eagerly exit but it should continue searching in that case to find appropriate symbol.

Currently workaround is:

class Foo {
   template aSymbol(T) {
       auto aSymbol(args1) {...}
       auto aSymbol(args2) {...}
   }

dsemver not runs with dmd 2.097.0

dub run dsemver@ -- -h
Fetching dsemver ~master...
Building package dsemver in /home/luis/.dub/packages/dsemver-master/dsemver/
Performing "debug" build using /usr/bin/dmd for x86_64.
argsd 1.0.0: target for configuration "library" is up to date.
dsemver ~master: building configuration "application"...
../../../.dub/packages/dsemver-master/dsemver/source/dsemver/compare.d(120,2): Error: invalid `foreach` aggregate `old.members`, define `opApply()`, range primitives, or use `.tupleof`
/usr/bin/dmd failed with exit code 1.

Target doesn't exist for source library package

Reproduction Steps:

  1. git clone https://github.com/chances/teraflop-d.git && cd teraflop-d
  2. dub run dsemver -- -p . -l
  3. Observe output:
Building package dsemver in /home/chances/.dub/packages/dsemver-1.1.0/dsemver/
Performing "debug" build using /home/chances/dlang/ldc-1.24.0/bin/ldc2 for x86_64.
argsd 1.0.0: target for configuration "library" is up to date.
dsemver 1.1.0: target for configuration "application" is up to date.
To force a rebuild of up-to-date targets, run again with --force.
Running ../../.dub/packages/dsemver-1.1.0/dsemver/dsemver -p . -l
DFLAGS="WARNING: A deprecated branch based version specification is used for the dependency gfx:vulkan. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used for the dependency gfx:graal. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
WARNING: A deprecated branch based version specification is used for the dependency gfx:genmesh. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Target 'teraflop' doesn't exist. Is the target type set to "none" in the package recipe? -X -Xf=.dsemver/dsemver_0.7.1.json" dub build
  1. dub run dsemver -- -p . -c
  2. Observe thrown exception:
std.file.FileException@std/file.d(371): ./.dsemver/dsemver_0.7.1.json: No such file or directory
----------------
??:? [0x55aa8e919095]
??:? [0x55aa8e924a16]
??:? [0x55aa8e90af6d]
??:? [0x55aa8e8d9d80]
/home/chances/dlang/ldc-1.24.0/bin/../import/std/file.d:320 [0x55aa8e88308e]
/home/chances/dlang/ldc-1.24.0/bin/../import/std/file.d:519 [0x55aa8e882cfd]
ast.d:147 [0x55aa8e8875e8]
/home/chances/GitHub/teraflop-d/../../.dub/packages/dsemver-1.1.0/dsemver/source/app.d:82 [0x55aa8e8984b8]
??:? [0x55aa8e90ac3b]
??:? [0x55aa8e90ab37]
??:? [0x55aa8e90a98d]
/home/chances/dlang/ldc-1.24.0/bin/../import/core/internal/entrypoint.d:42 [0x55aa8e899594]
??:? __libc_start_main [0x7fcc6819cbf6]
??:? [0x55aa8e85f889]

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.