sonatype-nexus-community / nexus-repository-composer

Composer support for the Nexus Repository Manager (work in progress!)
Eclipse Public License 1.0
214 stars 81 forks source link

proxy repository can import only one version for each component in https://packagist.org/ #77

Open ym2048 opened 4 years ago

ym2048 commented 4 years ago

Hi,I install Sonatype Nexus Repository ManagerOSS 3.22.1-02 throw docker command list as follow: docker exec -it nexus-repository-composer /bin/bash

Then create a proxy repository for packagist, But I found that I cannot require another version of the same component. The kar version I used is 0.0.4

My proxy repository setting is as follow: name:composer-central format:composer type:proxy Location of the remote repository being proxied: https://packagist.org/ "Auto-block outbound connections on the repository if remote peer is detected as unreachable/unresponsive " is ticked "How long (in minutes) to cache artifacts before rechecking the remote repository. Release repositories should use -1." is set -1 "How long (in minutes) to cache metadata before rechecking the remote repository" is set -1 "How long to cache the fact that a file was not found in the repository (in minutes)" is set 0

My operation steps is as follows: composer require andler_yangming/composer_test:v0.0.7 Component is successfully installed.

then I execute command as follow to require another version composer require andler_yangming/composer_test:v0.0.8

But I got following response

[InvalidArgumentException] Could not find package andler_yangming/composer_test in a version matching v0.0.8

The new version 0.0.8 cannot be imported unless I click "invalid cache" in repository management page Is there a bug in the nexus-repository-composer plugin or my configuration is wrong? Thank you very much.