Yii Framework Forum: [Invalid] Stop checking for not empty! - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

[Invalid] Stop checking for not empty! Composer install should allow installing into existing directory Rate Topic: -----

#1 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 09 November 2015 - 12:38 PM

So, I created a new repository (Mercurial) and wanted to add a Yii application to it by doing the composer dance but Yii 2 yelled at me because the directory wasn't empty?

Could you stop that behavior, please? :)

I know what I'm doing. ;)


I thought about creating a ticket for it at Github, but I am not sure where to put it.
There are literally nearly 1000 open tickets, so I thought I'd check here first.
"Less noise - more signal"
0

#2 User is offline   Bizley 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 922
  • Joined: 29-July 14
  • Location:Wrocław

Posted 09 November 2015 - 01:16 PM

It's not Yii 2, it's Composer. Put it in https://github.com/c...composer/issues but it was discussed several times before.
http://bizley.pl ʕ•ᴥ•ʔ
1

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 09 November 2015 - 03:02 PM

D'oh.
And when I thought I had a just cause... ;)
It's not a big deal, so I guess I'd take a look at the Composer issue tracker.
"Less noise - more signal"
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 09 November 2015 - 03:13 PM

It looks like it's because of the way that Composer depends on Git:

https://github.com/c...ser/issues/1135

Personally, I really hate the way that composer sometimes can pollute my vendor directory with Git stuff..
Of course, that is not a problem if the package maintainers have done a proper job. ;)
"Less noise - more signal"
0

#5 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 10 November 2015 - 07:44 AM

Quote

Personally, I really hate the way that composer sometimes can pollute my vendor directory with Git stuff.


Try adding --prefer-dist to your commands.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
1

#6 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 10 November 2015 - 07:46 AM

I usually do that, of course, but sometimes I use packages that does not exist in a stable (tagged) version :)
"Less noise - more signal"
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users