repman icon indicating copy to clipboard operation
repman copied to clipboard

Use source and not dist in gitlab repositories

Open prhost opened this issue 4 years ago • 3 comments

Hi,

Is it possible within https://repman.io to use git packages and use source not dist? cloning the repository. I tried to add a project via the url git@git... but I got this error

Screen Shot 2021-09-21 at 10 50 45

prhost avatar Sep 21 '21 13:09 prhost

It should be possible with https:// url format, but this approach will require to add credentials to url ... :thinking: which not necessarily is something you want to do.

akondas avatar Sep 21 '21 16:09 akondas

It should be possible with https:// url format, but this approach will require to add credentials to url ... 🤔 which not necessarily is something you want to do.

is that I needed the source version at my place of work, as I change and version directly in the package I'm using.

I resolved temporarily by creating a token in gitlab and using my https://user:token@git... this way it downloads the source version and not just the dist.

prhost avatar Sep 22 '21 15:09 prhost

I just tried such a scenario since I also need it in my organization.

After adding the package through the gitlab integration I was able to download the package along with its respective git repository either by running: composer update --prefer-source or by defining in the composer.json:

 "config": {
    "preferred-install": {
      "*": "source"
    }
  }

and running composer update

diwipl avatar Feb 03 '22 20:02 diwipl