Skip to content

Comments

Improve GDC workaround against a failing DUB registry#7732

Merged
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:gdc-workaround
Jan 21, 2018
Merged

Improve GDC workaround against a failing DUB registry#7732
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:gdc-workaround

Conversation

@wilzbach
Copy link
Contributor

See also: #7692
I see the following in the logs:

++ '[' gdc == gdc ']'
++ touch /home/runner/dlang/dub
touch: cannot touch ‘/home/runner/dlang/dub’: No such file or directory
++ sed 's/dub="dub-$(fetch $url)"/dub=dub' -i install.sh
sed: -e expression #1, char 33: unterminated `s' command
++ CURL_USER_AGENT='DMD-CI curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3'
++ bash install.sh gdc --activate
curl: (22) The requested URL returned error: 502 Bad Gateway

https://semaphoreci.com/wilzbach/dmd-2/branches/master/builds/29

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @wilzbach!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

# DUB isn't needed for gdc
if [ "${DMD:-dmd}" == "gdc" ] ; then
touch "$HOME/dlang/dub"
mkdir -p $HOME/dlang/dub
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we guaranteed that $HOME does not contain spaces?

Copy link
Member

Choose a reason for hiding this comment

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

As this is only supposed to run on CI platforms, I'm fine with that assumption.

@dlang-bot dlang-bot merged commit 66ad69b into dlang:master Jan 21, 2018
@wilzbach wilzbach deleted the gdc-workaround branch March 13, 2018 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants