Skip to content

Comments

Check whether DUB is provided by the release#214

Merged
dlang-bot merged 2 commits intodlang:masterfrom
wilzbach:check-for-installed-dub
Mar 1, 2017
Merged

Check whether DUB is provided by the release#214
dlang-bot merged 2 commits intodlang:masterfrom
wilzbach:check-for-installed-dub

Conversation

@wilzbach
Copy link
Contributor

DUB is provided by DMD (>= 2.072.0) and LDC (>= 1.1.0), so there's no need to download it again.

@MartinNowak
Copy link
Member

Will merge and release later today.

local arch="zip"
fi

if [[ $ver > "2.072.0z" ]]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm on a second though: this seems to exclude 2.072.0, should I change it to sth. like 2.071.9?

Copy link
Member

@MartinNowak MartinNowak Feb 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

> "2.071z"

if [ $os != linux ] && [ $os != osx ]; then
fatal "no ldc binaries available for $os"
fi
if [[ $ver > "1.1.0z" ]]; then
Copy link
Contributor Author

@wilzbach wilzbach Feb 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar here: should I change it to 1.0.99?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what the z is for 1.0z should work.

@dlang-bot dlang-bot merged commit 63e0319 into dlang:master Mar 1, 2017
@MartinNowak
Copy link
Member

Had to enable squash merges for this repo first.

@wilzbach wilzbach deleted the check-for-installed-dub branch March 1, 2017 23:27
fi
if [ "$has_dub_included" -eq 0 ] ; then
install_dub
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmh, this still queries code.dlang.org when a compiler is already installed.

@MartinNowak
Copy link
Member

You also didn't adopt the activate scripts to work w/o a separate dub installation.

@wilzbach
Copy link
Contributor Author

wilzbach commented Mar 1, 2017

You also didn't adopt the activate scripts to work w/o a separate dub installation.

Hmm, it still "works", because it's sets the $PATH variable.
However, I agree it would be nicer not to put the DUB path in there, if it doesn't exist (-> will do a short follow-up).

@MartinNowak
Copy link
Member

Also seems to fail, at least during initial installation, due to return 1 and set -e (errexit).

@MartinNowak
Copy link
Member

I'll revert this for now to not impact any usage.

wilzbach added a commit to wilzbach/installer that referenced this pull request Mar 1, 2017
Check whether DUB is provided by the release
merged-on-behalf-of: Martin Nowak <code@dawg.eu>
wilzbach added a commit to wilzbach/installer that referenced this pull request Mar 2, 2017
Check whether DUB is provided by the release
merged-on-behalf-of: Martin Nowak <code@dawg.eu>
wilzbach added a commit to wilzbach/installer that referenced this pull request Mar 2, 2017
wilzbach added a commit to wilzbach/installer that referenced this pull request Mar 2, 2017
wilzbach added a commit to wilzbach/installer that referenced this pull request Oct 12, 2017
wilzbach added a commit to wilzbach/installer that referenced this pull request Nov 28, 2017
wilzbach added a commit to wilzbach/installer that referenced this pull request Dec 4, 2017
wilzbach added a commit to wilzbach/installer that referenced this pull request Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants