0

I made a project hosted in a private Gitlab EE instance on my server with "type": "library", and in my application, required it as usual and also added a "repository" entry

{
    "type": "vcs",
    "url": "https://my.gitlab.install.com/repo-name/package-name.git"
}

Composer pulls the package in, but it also includes the .git folder causing Git to see it as a subproject.

Am I missing something?

Joe Z
  • 306
  • 1
  • 3
  • 12
  • Do you have `vendor` directory in `.gitignore` of your project? – rob006 Oct 25 '18 at 20:01
  • We're versioning the vendor directory in the application. And yes, in the package, `vendor` is ignored. – Joe Z Oct 26 '18 at 12:57
  • This is what you missed - you should exclude `vendor` from VCS in your application and use `composer.lock` to lock dependencies on specified version. – rob006 Oct 26 '18 at 13:14
  • Unfortunately, that is not an option at the moment. And, it also doesn't address the issue. The main issue is that my package's .git folder is getting pulled in through composer, while other package's .git aren't. – Joe Z Oct 26 '18 at 22:23

0 Answers0