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

Tool path is wrong when calling cake file in sub directory #867

Closed
patriksvensson opened this issue May 5, 2016 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@patriksvensson
Copy link
Member

What You Are Seeing?

When passing a relative path to a script file not relative to the bootstrapper location, the paths to tools get messed up when using the #tool directive.

What is Expected?

The tool path to be relative to the executing script.

What version of Cake are you using?

0.11.0

Are you running on a 32 or 64 bit system?

64-bit

What environment are you running on? Windows? Linux? Mac?

Windows

Are you running on a CI Server? If so, which one?

No

How Did You Get This To Happen? (Steps to Reproduce)

  1. Create the following folder structure:
build.ps1
SubFolder
  - build.cake
  1. Where build.cake looks like this:
#tool "nuget:?package=XamarinComponent"
  1. Then you should see that the tool will be downloaded to the wrong location when running the script with a relative path:
./build.ps1 -Script "./SubFolder/build.cake"
@patriksvensson patriksvensson added this to the v0.12.0 milestone May 5, 2016
patriksvensson added a commit that referenced this issue May 5, 2016
When passing a relative path to a script not in the same
direectory as the bootstrapper, tools would be installed in
the wrong directory.

Closes #867
patriksvensson added a commit that referenced this issue May 5, 2016
When passing a relative path to a script not in the same
directory as the bootstrapper, tools will be installed in
the wrong directory.

Closes #867
@patriksvensson patriksvensson self-assigned this May 5, 2016
gep13 pushed a commit that referenced this issue May 6, 2016
When passing a relative path to a script not in the same
directory as the bootstrapper, tools will be installed in
the wrong directory.

Closes #867
@gep13 gep13 closed this as completed in #868 May 6, 2016
@gep13
Copy link
Member

gep13 commented May 6, 2016

@Redth when you have a minute, and are able to, can you pull the latest MyGet build, and verify that the problem that you noted has been resolved? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants