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

Renamed repos #23

Closed
Borales opened this issue Sep 17, 2014 · 5 comments
Closed

Renamed repos #23

Borales opened this issue Sep 17, 2014 · 5 comments
Labels

Comments

@Borales
Copy link

Borales commented Sep 17, 2014

Constant requesting token access for renamed public repos (while trying to get repo info for the previous address). For example:
Old address - https://github.com/ask11/storage, new address - https://github.com/alekseykulikov/storage

I'm getting an error:

Your GitHub credentials are required to fetch private repository metadata (git://github.com/ask11/storage.git)
The credentials will be swapped for an OAuth token stored in <file>, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications

Is there a way to fix this?
(Another example is https://github.com/NickQiZhu/dc.js => https://github.com/dc-js/dc.js)

Thanks.

@Borales
Copy link
Author

Borales commented Sep 17, 2014

I've tried to set extra params:

"asset-repositories": [
    {
        "type": "bower-vcs",
        "url": "https://github.com/dc-js/dc.js.git"
    },{
        "type": "bower-vcs",
        "url": "https://github.com/alekseykulikov/storage.git"
    }
]

The error still occurs

@francoispluchino
Copy link
Member

However there is still a bug with packages that use the version numbers found only in the file package.json/bower.json in a branch. This should be fixed with this issue #21.

Concerning the case of redirects, the problem may be that Composer cannot yet handle redirects in VCS Repositories (see this issue #24 and this gist).

I continue to solve these 2 problems for the next beta.

@francoispluchino
Copy link
Member

I think I can fix the redirection problem directly in the plugin.

@Borales
Copy link
Author

Borales commented Sep 17, 2014

@francoispluchino that would be great! Thanks

@francoispluchino
Copy link
Member

You can now overwrite a VCS Repository of the asset registry by a custom config directly in the root file composer.json (see b116949).

You will find the doc here.

Concerning the redirection, I added an dedicated issue (see #24).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants