Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download Tango package #411

Closed
jacob-carlborg opened this issue Aug 27, 2014 · 6 comments
Closed

Cannot download Tango package #411

jacob-carlborg opened this issue Aug 27, 2014 · 6 comments

Comments

@jacob-carlborg
Copy link
Contributor

I'm trying to use the tango package, version 1.0.0+2.066.0, in a project but I get this error:

Error executing command upgrade: Failed to download http://code.dlang.org/packages/tango/1.0.0%252B2.066.zip: 404 Not Found

@s-ludwig
Copy link
Member

Fixed on the 0.9.22 branch. However, it's now hitting a DMD/Optlink issue on Windows. Since Optlink uses "+" as the delimiter for its arguments, it tries to load .dub/packages/tango-1.0.0+2.066/tango.lib as two separate files, .dub/packages/tango-1.0.0 and 2.066/tango.lib.

@jacob-carlborg
Copy link
Contributor Author

Can you replace + with some other symbol in the local path?

@s-ludwig
Copy link
Member

Yeah, maybe #? Most other ASCII symbols have special meanings on one of the major operating systems or shells. # is also not allowed in SemVer, so that should be fine.

@jacob-carlborg
Copy link
Contributor Author

It works to link a library with # in the name on OS X at least.

@s-ludwig
Copy link
Member

Turns out that # is treated by Optlink as a comment... = is interpreted by DMD, what works is $, let's just hope that that won't interact in a bad way with some shells... Or maybe § would be a better choice? The number of unused symbols is severely limited.

EDIT: Wait a minute, _ isn't allowed by SemVer, so I'm going to switch to that.

@jacob-carlborg
Copy link
Contributor Author

Great, thanks.

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

No branches or pull requests

2 participants