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

should svn endpoint with explicit revision really add /trunk to svn path? #2396

Closed
mkropf opened this issue Nov 25, 2016 · 2 comments
Closed

Comments

@mkropf
Copy link

mkropf commented Nov 25, 2016

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

1.8.0
3.7.5
v4.3.0

Steps to reproduce the issue:

  1. bower info svn+https://[svnrepo]/[somepath]#r[revnum]

Describe the results you received:
ECMDERR Failed to execute "svn export [...] https://[svnrepo][somepath]/trunk -r[revnum]

Describe the results you expected:

Because svn support appends /trunk it is not possible to get a module out of a svn repo with modules bundled by project:

[project1]
  trunk/
    module1/
    module2/

Additional information:

@Polarisation
Copy link

Bower worked like this for some time, so I doubt that could be changed now as it would break builds.

However this seems like a fairly common scenario, so I just added a workaround to the alternative SVN resolver I wrote a few months ago: https://github.com/Polarisation/svn-resolver

After installing that you should be able to do:
bower info svn+https://[svnrepo]/[somepath]#r[revnum]-no-trunk and it will not append /trunk as usual. I haven't tested it thoroughly, feel free to log issues if you find any.

@sheerun
Copy link
Contributor

sheerun commented Apr 27, 2020

This behavior won't be changed but you can use pluggable resolver to implement it differently https://bower.io/docs/pluggable-resolvers/

@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

3 participants