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

GH1002: Make sure that cake.config can be found #1003

Merged
merged 1 commit into from
Jun 24, 2016
Merged

GH1002: Make sure that cake.config can be found #1003

merged 1 commit into from
Jun 24, 2016

Conversation

patriksvensson
Copy link
Member

For some reason, we used the working directory to locate the cake.config which works fine if the script that is being executed resides in the root directory. This PR will make sure that Cake always will look for cake.config in the same directory as the build script.

Closes #1002

@dnfclas
Copy link

dnfclas commented Jun 22, 2016

Hi @patriksvensson, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@gep13
Copy link
Member

gep13 commented Jun 23, 2016

@patriksvensson looks like there is a failing test on Mono :-(

@patriksvensson
Copy link
Member Author

@gep13 Ouch! Will take a look at it during my lunch.

public IDictionary<string, string> Arguments { get; set; }

public CakeConfigurationProviderFixture()
{
Environment = FakeEnvironment.CreateUnixEnvironment();
FileSystem = new FakeFileSystem(Environment);
Path = "./";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use Environment.CurrentDirectory()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, no. This is a unit test fixture.

@patriksvensson
Copy link
Member Author

Seems like there's a mono bug in NSubstitute.

@gep13
Copy link
Member

gep13 commented Jun 24, 2016

@patriksvensson said...
Seems like there's a mono bug in NSubstitute.

Oh no! 😢

For some reason, we used the working directory to locate the cake.config
which works fine if the script that is being executed resides in the root
directory. This commit will make sure that Cake always will look for
cake.config in the same directory as the build script.

Closes #1002
@patriksvensson
Copy link
Member Author

Ok, I've fixed the problem and rebased against develop 😄

@gep13
Copy link
Member

gep13 commented Jun 24, 2016

LGTM! 😄

@gep13 gep13 merged commit e97d46b into cake-build:develop Jun 24, 2016
@patriksvensson patriksvensson deleted the feature/GH1002 branch June 25, 2016 23:25
@patriksvensson patriksvensson changed the title Make sure that cake.config can be found GH1002: Make sure that cake.config can be found Jun 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants