-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Build.ps1 doesn't play nice with an existing 'tools' directory #15
Comments
Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 Implements cake-build#15 for build.ps1
@flcdrg agreed! I see you are working on a PR for this. Let us know when you have something that you would like us to review. Ideally, this PR would cover the build.sh file as well 😄 but understand if that isn't possible. |
Yeah. My bash skills are very rusty but I'll see if I can do something. Sent from my Windows Phone From: Gary Ewan Parkmailto:[email protected] @flcdrg agreed! I see you are working on a PR for this. Let us know when you have something that you would like us to review. Ideally, this PR would cover the build.sh file as well 😄 but understand if that isn't possible. You are receiving this because you were mentioned. |
Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 Implements cake-build#15 for build.ps1
I have found that this deleting of content under
I had previously been downloading/installing the Cake.LongPath.Module through the build.ps1 file itself; this is not directly related to the inclusion of Cake.BuildSystems.Module! Upon triggering a TeamCity build, I immediately found that neither of the modules were being loaded. Comparing the Build agent against my local environment (PowerShell4), I found that the agent was PowerShell 3
Updating the agent isn't in the cards at the moment, I wound up modifying the bootstrap file to a workable analog. Sharing this bit of script mostly for record if anyone else runs into this. I don't know if there's a strong need or desire to support PowerShell 3 out of the box, but if this can help someone, great.
|
Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 Implements cake-build#15 for build.ps1
Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 Implements cake-build#15 for build.ps1
- Bash parsing cake.config for Tools path - Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 - Implements cake-build#15 for build.ps1
Got hit by this today. Not only did build.ps1 delete all my existing tools, it also failed to bootstrap itself. |
FYI I've been using the changes from #17 with success locally. I think the feedback on the PR was that it possibly wouldn't be accepted just because it's a sizable change. Maybe an alternative would be to do a better job of sniffing the |
- Bash parsing cake.config for Tools path - Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 - Implements cake-build#15 for build.ps1
- Bash parsing cake.config for Tools path - Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 - Implements cake-build#15 for build.ps1
I had the same problem with the modules folder. With the current version of bootstrapper the following lines bring me to the solution: if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or
($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) {
Write-Verbose -Message "Missing or changed package.config hash..."
Get-ChildItem -Exclude packages.config,nuget.exe,Cake.Bakery |
Remove-Item -Recurse
} As soon as I versioned the |
- Bash parsing cake.config for Tools path - Make use of https://github.com/lipkau/PsIni/blob/master/Functions/Get-IniContent.ps1 - Implements cake-build#15 for build.ps1
If a
tools
directory already exists, then the currentbuild.ps1
appears to want to delete all the contents. This is not very neighbourly of it (especially as it isn't that unusual for a solution to have a tools directory).Ideally, build.ps1 should:
The text was updated successfully, but these errors were encountered: