Giter Site home page Giter Site logo

docker-ldc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-ldc's Issues

Upgrade LDC to 1.5.0-beta1

LDC v1.5.0-beta1 was released, please upgrade the docker image.

If wanted, I can also provide a pull request.

DUB appears broken in this Docker image

Failed to invoke the compiler ldc2 to determine the build platform:

root@machine:/c/code/src# dub
Failed to invoke the compiler ldc2 to determine the build platform:

Note that dub is installed

root@machine:/c/code/src# which dub
/dlang/ldc-1.2.0-beta2/bin/dub

and seems to be able to run as long as compilation is not utilized:

root@machine:/c/code/src# dub run -h
USAGE: dub run [<package>] [<options...>] [-- <application arguments...>]
......snip....
root@machine:/c/code/src# dub init
Package recipe format (sdl/json) [json]:

Expected results

The following is the same manual scenario but with the latest dlanguage/dmd:

root@machine:/c/code/src# dub

Neither a package description file, nor source/app.d was found in
... snip....
No valid root package found - aborting.

Additional Notes

Installing dub via apt-get (base docker image used's package manager, which has dub entries) does not resolve the issue.

Missing libcurl

I am using the docker-ldc image on wercker (CI) to run dub to build my application.

But the image doesn't have libcurl installed and dub depends on it.

dub can't find any packages

In the ldc image dub seems unable to retrieve any package:

Step 4/4 : RUN dub test
 ---> Running in f265d9ecdb5c
Root package evaluation-d references unknown package fluent-asserts
Removing intermediate container f265d9ecdb5c
The command '/bin/sh -c dub upgrade' returned a non-zero code: 2

I tried different dependencies with the same result. code.dlang.org is reachable currently, as demonstrated by using dlanguage/dmd.

dub.json:

{
	"name": "evaluation-d",
	"dependencies": {
		"fluent-asserts": "~>0.7",
	}
}

Dockerfile:

FROM dlanguage/ldc

ADD dub.json /usr/src/rk-mir/

WORKDIR /usr/src/rk-mir/

RUN dub upgrade

Using FROM dlanguage/dmd instead works as expected:

Step 4/4 : RUN dub upgrade
 ---> Running in b6b467fc633b
Upgrading project in /usr/src/rk-mir
Fetching fluent-asserts 0.7.0 (getting selected version)...
Fetching libdparse 0.7.1 (getting selected version)...
Fetching ddmp 0.0.1-0.dev.2 (getting selected version)...

As I want to use mir-glas switching from ldc to dmd is no option for me.

Keep up 2 date

Dunno if the author is still active but this image needs updating.

The latest LDC is 1.10.0 with 1.11.0 about to be release.
@JohanEngelen maybe LDC team could host this image and keep it up2date, make it part of the release.

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.