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

ENORESTARGET "URL sources can't resolve targets" when installing from URLs with user information #2391

Closed
ankon opened this issue Nov 14, 2016 · 8 comments
Assignees

Comments

@ankon
Copy link

ankon commented Nov 14, 2016

Output of bower -v && npm -v && node -v:

1.8.0
3.10.9
v7.1.0

Additional environment details (proxy, private registry, etc.):

We use bower install -s in our travis steps to install some content from a private repository even for open source builds. See #2176 for some more details about this.

Steps to reproduce the issue:

  1. bower install -s https://${GH_TOKEN}@github.com/Collaborne/collaborne-build-tools.git

GH_TOKEN is an environment variable containing a GitHub token for repository access.

Describe the results you received:

bower                     ENORESTARGET URL sources can't resolve targets

Describe the results you expected:

(bower installing the requested item)

Additional information:

  • This used to work in pre-1.8.0 bower.
  • The problem is the '@' character in the URL: Due to other means of authentication, this works my development machine: bower install -s https://github.com/Collaborne/collaborne-build-tools.git.
  • Installing dependency from URL and specify version #2272 might be related (this was closed because one must not specify a version in the URL - but note how the '@' in their URLs is part of the path.)
ankon added a commit to Collaborne/zendesk-web-widget that referenced this issue Nov 14, 2016
@ankon
Copy link
Author

ankon commented Nov 17, 2016

#2322 looks like the cause of this.

@doomedramen
Copy link
Member

Yep, it looks like is was caused by #2322, I'll put a fix in today.

@doomedramen doomedramen self-assigned this Nov 22, 2016
@ankon
Copy link
Author

ankon commented Dec 6, 2016

For reference: #2395 is the PR that should fix this.

ankon added a commit to Collaborne/paper-drawer that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/google-analytics-tracker-behavior that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-contact that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-suggest-textarea that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/zendesk-web-widget that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/bing-static-map that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-collapse-item that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-fab-speed-dial that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-password-input that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-search that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/iron-localstorage-behavior that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-alert-dialog that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-bottom-sheet that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-chip that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/paper-date-picker-item that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/carbon-i18n-behavior that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/iron-time-behavior that referenced this issue Dec 6, 2016
ankon added a commit to Collaborne/polymer-cordova-keyboard that referenced this issue Dec 6, 2016
@srvance
Copy link

srvance commented Dec 30, 2016

I'm still seeing this in bower 1.8.0. It's preventing me from referencing a development branch version of a package. I'm using a hash # as shown in the bower.json spec as part of a git reference.

@ankon
Copy link
Author

ankon commented Dec 30, 2016

I'm still seeing this in bower 1.8.0

This was introduced in bower 1.8.0, so yes, you'd be seeing it there. If you can: use bower 1.7.9 to avoid the problem.

@srvance
Copy link

srvance commented Dec 30, 2016

I reverted to 1.7.9 and had the same problem. (Uninstalled globally, installed 1.7.9 globally, added 1.7.9 to my local project. The only thing I couldn't do was change ember-cli's dependency on 1.8.0, which may have been why it persisted.)

ankon added a commit to Collaborne/iron-justified-gallery that referenced this issue Jan 16, 2017
ankon added a commit to Collaborne/iron-justified-gallery that referenced this issue Jan 16, 2017
This avoids bower/bower#2391 until #6 is fixed.

Relates to #5
ankon added a commit to Collaborne/neon-text-board that referenced this issue Jan 24, 2017
ankon added a commit to Collaborne/iron-timer that referenced this issue Apr 19, 2017
ankon added a commit to Collaborne/paper-more-button that referenced this issue Jun 8, 2017
ankon added a commit to Collaborne/paper-static-item that referenced this issue Jun 8, 2017
ankon added a commit to Collaborne/paper-subheader that referenced this issue Jun 8, 2017
ankon added a commit to Collaborne/paper-random-term-card that referenced this issue Jun 8, 2017
ankon added a commit to Collaborne/polymer-cordova-aware that referenced this issue Jun 8, 2017
ankon added a commit to Collaborne/polymer-cordova-inappbrowser-html that referenced this issue Jun 8, 2017
ankon added a commit to Collaborne/iron-file-icons that referenced this issue Jun 8, 2017
ankon added a commit to Collaborne/polymer-cordova-network-activity that referenced this issue Jun 12, 2017
@justin-c-rounds
Copy link

Is there a workaround for this? I'm currently having this same problem.

@robertology
Copy link

I saw the problem with bower 1.8 but is working as expected in 1.8.2

@sheerun sheerun closed this as completed Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants