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

Can't build without git #171

Open
paulovitorbal opened this issue Feb 19, 2018 · 3 comments
Open

Can't build without git #171

paulovitorbal opened this issue Feb 19, 2018 · 3 comments

Comments

@paulovitorbal
Copy link

paulovitorbal commented Feb 19, 2018

Unfortunately, where I work we still use svn to version control. And I had to make a copy of the project and git init then git commit to being able to build.

@theofidry
Copy link
Member

What kind of error are you getting with SVN @paulovitorbal?

In any case, I recommend you to give a try to humbug/box rather, at least I can fix the issue there :)

@paulovitorbal
Copy link
Author

paulovitorbal commented Feb 21, 2018

box.json
{ "chmod": "0755", "directories": [ "src", "tempaltes" ], "finder": [ { "name": "*.php", "in": "vendor" } ], "git-version": "1.0.0", "main": "bin/main.php", "output": "ouvidoria.phar", "stub": true }
Console output:

$ box build
Building...
[RuntimeException]
The tag or commit hash could not be retrieved from "/home/paulovitorbal/projetos/ouvidoria": The tag or commit hash could not be retrieved from "/home/paulovitorbal/
projetos/ouvidoria": fatal: Not a git repository (or any of the parent directories): .git
[RuntimeException]
The tag or commit hash could not be retrieved from "/home/paulovitorbal/projetos/ouvidoria": fatal: Not a git repository (or any of the parent directories): .git
build [-c|--configuration CONFIGURATION]

@theofidry
Copy link
Member

Back on this: the error occurs because you are specifying git-version in the config which needs to use Git... Get rid of that part and you should be good, for both Box 2 & 3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants