Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Automatically create .gitignore when installing #16

Closed
Hywan opened this issue Jul 30, 2015 · 8 comments
Closed

Automatically create .gitignore when installing #16

Hywan opened this issue Jul 30, 2015 · 8 comments

Comments

@Hywan
Copy link
Member

Hywan commented Jul 30, 2015

Hello 馃槂,

What about creating a .gitignore file when installed through Composer?

Before composer install:

Foo/
    .git/
    composer.json
    Awesomeness.php

After composer install:

Foo/
    .git/
    .gitignore
    composer.json
    Awesomeness.php
    vendor/
        hoa/
            devtools/
            test/

Allows people to not commit useless stuff. However, .gitignore is still prompted in git status :-/. Is it just a stupid idea? Should we commit all the .gitignore file?

/cc @hoaproject/hoackers and @shulard

@shulard
Copy link
Contributor

shulard commented Jul 30, 2015

Hello!

Personaly, I think that .gitignore must be present in the repositories. They are important to define the library behaviour.

Why are they not present ? Is it because you have these ignore as global on your computer ?

Maybe it's useless for the non composer users... But, for the contribution process, it will be more simple to have them versioned. Like that you fork, clone and you are ready to work (I think it's a common practice in PHP development today...).

Also I can miss something about Hoa usage ...

@Hywan
Copy link
Member Author

Hywan commented Jul 31, 2015

There is no .gitignore files so far because we don't need them. But with Composer, yes, it could be great to write some of them. Thoughts?

@shulard
Copy link
Contributor

shulard commented Jul 31, 2015

Ok I understand, Hoa was not created with Composer first... Also the .gitignore stay the same for all libs because it's just a composer specific...

/vendor/
composer.lock

The same way, I saw that you never put composer.lock on git. I know that it's a Composer specific feature but it allow to identify the right dependency version to use for the current lib version. Don't you think it can be a cool feature too ?

@thehawk970
Copy link

Hello,

composer.lock are optionnal, cause we adopt the R眉sh Release you can read more information here :
http://hoa-project.net/En/Source.html#Rush_Release

.gitignore can be cool 馃憤
Cheers

@shulard
Copy link
Contributor

shulard commented Jul 31, 2015

Ok, thanks for the link about R眉sh Release! Now I fully understand the current architecture...

@Hywan
Copy link
Member Author

Hywan commented Jul 31, 2015

But having a .gitignore is not against Rust release. I guess it's a good think to have .gitignore files. Any volunteer to lead the work? If yes, we must open an issue on https://github.com/hoaproject/Central instead of this issue to check what we need to put inside the .gitignore.

@shulard
Copy link
Contributor

shulard commented Jul 31, 2015

Ok, I'll be glad to add these files :) I create the issue...

@Hywan
Copy link
Member Author

Hywan commented Aug 3, 2015

I close this issue in favor of hoaproject/Central#22.

@Hywan Hywan closed this as completed Aug 3, 2015
@Hywan Hywan removed the ready label Aug 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants