-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Ark fails to compile on Windows if 7zip is not already installed #157
Comments
This change broke our server deployment process, we could not launch any Windows servers where any of the cookbooks referenced the Ark cookbook. Luckily Berkshelf caches the referenced cookbooks on the workstation, so I could modify the Ark cookbook and upload my version to the Chef server. As a temporary solution I have updated the Ark attribute file Replaced
with
and uploaded the cookbooks to the Chef server with |
👍 |
Downgrading to v1.1.0 is my current workaround; the registry method in the default attributes file is not included in this version. |
As previously stated this fails at compile time. In cookbooks\ark\attributes\default.rb
|
Would putting it into a lazy {} block help? |
👍 |
I don't think a lazy block would help. I think the fix looks like it'd be to rescue nil so that when 7-zip isn't yet installed the |
This should be fixed in the 2.1 release. Let me know if you're still having issues though |
@tas50 Well, this fixes this particular issue, but I'm seeing plenty of other Windows-related issues and have filed a number of PRs/issues on them. Issues:
PRs:
|
This also introduces a new issue for me as well. The Seven-zip executable is not quoted, so we end up with a command-not-found situation. This is now tracked under issue #172
|
@reijop I opened PR #166 for exactly that issue. I have a fork and branch with all of the PRs/issues I ran into above fixed on it, https://github.com/sgtcoolguy/ark/tree/axway in case you need a working version until all of them get sorted/merged. |
I think #153 introduced a bug in version 1.2.0.
In my Vagrant box, 7zip is not pre-installed. In
attributes/default.rb
, lines 25-26 were added to look for the location of 7zip in the registry. However, it fails if the registry key is not found.Installing 7zip before running Ark fixes the problem.
I thought Ark was supposed to install 7zip if it did not exist, but now Ark is failing at compile time before it would have a chance to download and install 7zip.
The text was updated successfully, but these errors were encountered: