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

ErrorException : Array to string conversion #77

Open
VivekShingala opened this issue Feb 11, 2020 · 1 comment
Open

ErrorException : Array to string conversion #77

VivekShingala opened this issue Feb 11, 2020 · 1 comment

Comments

@VivekShingala
Copy link

Getting this error when trying to use @Version.

I have set git-local as commit mode.

commit:
mode: git-local

How to fix this error?

@praj
Copy link

praj commented Apr 27, 2020

The default config/version.yml will work fine with git commits once you publish the version ServiceProvider.

Here are the steps I used:

  • You might need to update git.version.local to be describe --tags flag ( see Issue version:absorb always throws 'GitTagNotFound' Error. #71 ) in config/version.yml (this is the only change needed). Try this if you get the GitTagNotFound exception.

  • Create a tag in the standard format (e.g. 1.0.0).

git tag 1.0.0 f8a69aef9b9852eca1073148cc228209b073c96e
  • Absorb the commit through the tag
php artisan version:absorb

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

No branches or pull requests

2 participants