-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add configuration to write to /tmp directory instead of .knapsack_pro #158
Comments
Hi @amckinnell What do you mean by root directory? Is it your project directory (for example What is your environment for running tests? Is this a business reason to not allow to write to your project directory? knapsack_pro gem creates I moved on purpose knapsack_pro temporary files outside of user project's Configuring your own path to a temporary directory other than Even if there was a way to configure a custom path to |
Thanks. I will have to do some digging before I can answer your questions (mostly because I am not the designer of the CI environment). I think your decision to move the knapsack_pro files out of the tmp directory is wise. I just have to figure out what I need to change on my end. Cheers. |
Solved the problem by changing the directory permissions and making the There are minimal advantages to making the project directory read-only. Thanks for your help and your product. Cheers. |
I'm glad you solved the issue. :) |
I know this issue was already closed but I find this new behaviour to be surprising and would also appreciate you reconsidering your decision. We also had to alter our CI config to enable this change. Temp files going to the tmp directory is the expected norm. This breaking because someone has configured hooks to clear tmp directories on spec runs feels like something they should be less surprised about than stashing these files under some directory we create from wherever knapsack is run. |
Hi @charles-ferguson and thank you for sharing the info. I was not aware that this change to keep files in Could you tell me more about what error did you see? Is it also related to permission access? I was inspired by the fact that many CI providers use directories like
I'm wondering maybe instead of using Rails Do you have any other ideas about what we could try? I don't know what was the root issue that you had. Would using Another idea, maybe during the installation of knapsack_pro we should ask users to create
I was also hoping that people should be less surprised but I saw many times people frustrated that knapsack_pro was not work when I'd appreciate your feedback so we could make a better decision about how to improve knapsack_pro gem. Thank you. |
Not sure if related, but I will go ahead and post a similar issue I had anyway... The error I was having on Buildkite was:
It worked without a problem before configuring the |
Hi @lckevin27 This looks like a related issue. Can you share the full error from your CI here or over to support if it contains sensitive data https://knapsackpro.com/contact ? I'm wondering why there is the path Have you solved the issue? How did you solve it? |
storyFor internal tracking of this issue: |
The change in
3.1.0
to use.knapsack_pro
directory for temporary files instead of thetmp
directory in the user's project directory is causing problems for me.In the environment where I run tests I have the
tmp
directory configured to be writable and the root directory configured to be readonly.Is it possible to add configuration to retain the behaviour prior to the changes in
3.1.0
?I imagine the default behaviour could be to use the
.knapsack_pro
directory with an optional configuration setting to explicitly set the directory or perhaps a flag to specify that thetmp
directory should be used. Of course, adding this configuration makes my life simpler and your code more complicated.The text was updated successfully, but these errors were encountered: