Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPENEUROPA-371: Task Runner: allow bin directory to be derived by composer.json "bin-dir" property #42

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

claudiu-cristea
Copy link
Contributor

@claudiu-cristea claudiu-cristea commented Feb 11, 2018

In my projects, I like to use ./bin as binary directory. This is easy to config in composer.json:

    "config": {
        "bin-dir": "bin/"
    },

But the task runner uses its own bin dir, independent from composer.

Proposal: Default to Composer's bin dir but still allow to override this behaviour in ./runner.yml.dist or ./runner.yml.

@drupol
Copy link
Contributor

drupol commented Feb 11, 2018

Hi Claudiu,

Very nice contribution :)

I've got a small question, what about using the Symfony Dotenv component for environment variables?

@claudiu-cristea
Copy link
Contributor Author

@drupol, As I see Dotenv's purpose is to read files with ENV vars that are storing sensitive data. For example you don't store passwords in the VCS but you can make them available via ENV vars. Then, in the CI, you set a file from where the vars are read. But we don't set any ENV vars in our code, we're only reading a potential var called COMPOSER_BIN_DIR using the native PHP's getenv() function. There is an exception in tests, where we set the variable for test purposes but that it's just using the PHP's native putenv() function. I really don't see a real use case for symfony/dotenv here.

@drupol
Copy link
Contributor

drupol commented Feb 11, 2018

Ok fair enough !

Thanks for the explanation :-)

@ademarco
Copy link
Member

@claudiu-cristea we have opened an issue about this on our board.

@ademarco ademarco changed the title Default 'runner.bin_dir' to Composer bin dir OPENEUROPA-371: Default 'runner.bin_dir' to Composer bin dir Mar 12, 2018
@ademarco ademarco changed the title OPENEUROPA-371: Default 'runner.bin_dir' to Composer bin dir OPENEUROPA-371: Task Runner: allow bin directory to be derived by composer.json "bin-dir" property Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants