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

Hardcoded "opscode" path #1347

Closed
dandv opened this issue Dec 1, 2014 · 3 comments
Closed

Hardcoded "opscode" path #1347

dandv opened this issue Dec 1, 2014 · 3 comments

Comments

@dandv
Copy link

dandv commented Dec 1, 2014

I've just installed ChefDK on Windows in a directory I chose, and vagrant up died with :

Bringing machine 'default' up with 'virtualbox' provider...
The following berks command failed to execute:

    C:\utils\chef\chefdk\bin/berks.BAT --version --format json

The stdout and stderr are shown below:

    stdout:
    stderr: C:/Utils/chef/chefdk/bin/berks:38:in `load': cannot load such file -- C:/opscode/chefdk/embedded/apps/berkshelf/bin/berks (LoadError)
        from C:/Utils/chef/chefdk/bin/berks:38:in `<main>'

I replaced opscode with the actual path in all files under bin, but I still get errors:

C:\Vagrant\meteor>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
    default: The Berkshelf shelf is at "C:/Users/A/.berkshelf/vagrant-berkshelf/shelves/berkshelf20141130-6800-1yco55z-default"
==> default: Sharing cookbooks with VM
There are errors in the configuration of this machine. Please fix
the following errors and try again:

Berkshelf:
* berksfile_path must be set

If opscode is the only directory that works, then maybe an option would be to remove the directory choice from the install wizard.

PS: I'm new to Berkshelf; please file the issue appropriately if this is the wrong place.

@sethvargo
Copy link
Contributor

Looks like a vagrant-berkshelf issue, but that path is not hard coded. /cc @danielsdeleo

@danielsdeleo
Copy link
Contributor

Yeah, this is a dup of this one: chef-boneyard/chef-dk#68 @sethvargo you can probably close as an upstream bug (or however you like to deal with those).

@dandv the issue is currently fixed in master and we've verified that some test builds work. The next release of ChefDK will include the fix for this.

@sethvargo
Copy link
Contributor

@danielsdeleo thanks! Labeled as an upstream bug for history.

@berkshelf berkshelf locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants