-
Notifications
You must be signed in to change notification settings - Fork 89
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
specify configuration file path #253
Comments
What command are you running and getting that error? Normally Tugboat catches the file missing You can specify the environment variable It will also look for a I'll open a PR to add this to the docs 👍 |
Many thanks, it seems it actually picks up the config file, but ruby still throws this error:
Is there a bug in parsing the config file? |
Hmm, possibly. Can you post your config file here, redacted API key if needed? |
|
@vladimirghetau Can you also post the raw yaml into this ticket? Also, what command are you running to get the error? |
@petems many thanks, I am running latest tugboat version, ubuntu 14.04, ruby 2.3.1, and this error comes with any command ( in this instance it's I can prevent the error by sending the command from the exact folder where the config file is located, but the only way to replicate this error is using Jenkins or by navigating in a different folder than the one where .tugboat resides. Raw Yaml:
Again, this config works, but only when I run tugboat from the same path where it resides. |
Ah, yeah it could be a Ruby 2.3.1 issue, I remember there being a frozen string issue with 2.3.1 https://wyeworks.com/blog/2015/12/1/immutable-strings-in-ruby-2-dot-3 Let me see if I can test that |
@vladimirghetau Can you run with |
I actually did, it seems the ruby component fails before the My assumption is it fails to process the content of the file due to some character that it doesn't understand while using a string function native to ruby. A way to replicate this would be:
The output to what you asked was:
I can provide access to an isolated VM for investigation if needed. |
An isolated VM would be awesome, I can't replicate on my machine with OSX Ruby 2.3.1 |
thanks @petems - trying to find an email or any way of contacting you privately and cannot. Any chance you can email me a DM on twitter (just followed you). |
@vladimirghetau Cool, followed back! 👍 |
Thanks for the machine, it looks like a non related issue to Tugboat, it turns out the problem was an old version of Rubygems (See rubygems/bundler#3187)
|
At the moment tugboat looks for its config file in ~/.tugboat.
Any chance we can specify the config file path in each call, or at least have it as an alternative specificed as an env var?
If the .tugboat is not found, I get something like this as well:
Would be great if it just returned an error code.
The text was updated successfully, but these errors were encountered: