You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this is the correct repository for opening this issue.
I have verified no other issues exist related to my problem.
I have verified this is not an issue for a specific package.
I have verified this issue is not security related.
I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
Building the choco source using ./build.ps1 fails because it can't find choco.exe
It appears to assume that Chocolatey CLI has been previously installed, which is a bit surprising given that we're trying to build Chocolatey CLI!
What is Expected?
The ToolPath should be updated to point to the locally built choco.exe so that can be used.
How Did You Get This To Happen?
./build.ps1
System Details
Operating System: 11
Windows PowerShell version: 5.1
Installed Packages
n/a
Output Log
========================================
Prepare-NuGet-Packages
========================================
========================================
Create-Chocolatey-Packages
========================================
An error occurred when executing task 'Create-Chocolatey-Packages'.
----------------------------------------
Teardown
----------------------------------------
Starting Teardown...
Finished running tasks.
Error: One or more errors occurred.
Could not locate choco.exe.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
flcdrg
added
the
Bug
Issues where something has happened which was not expected or intended
label
Jun 10, 2024
Wouldn't it be better to use the choco.exe that you've just built locally (to essentially dogfood it)?
I never even noticed setup.ps1! It also looks outdated (given it tries to install Pester v2). Best I can tell, it isn't mentioned at all in the docs in the choco repo either.
Chocolatey.Cake.Recipe is meant to be used on multiple projects, and the build of Chocolatey CLI only happens on one of those.
I like the idea of dog-fooding the build of Chocolatey CLI, to perform the pack of the Chocolatey packages though.
For now, I have updated the build instructions in this PR to mention that Chocolatey CLI is an expectation.
If we can make the addition of the dog-fooding generic enough that we can trigger it on the Chocolatey CLI build alone, I would be happy to proceed with that change.
Checklist
What You Are Seeing?
Building the choco source using
./build.ps1
fails because it can't find choco.exeIt appears to assume that Chocolatey CLI has been previously installed, which is a bit surprising given that we're trying to build Chocolatey CLI!
What is Expected?
The ToolPath should be updated to point to the locally built choco.exe so that can be used.
How Did You Get This To Happen?
./build.ps1
System Details
Installed Packages
Output Log
Additional Context
No response
The text was updated successfully, but these errors were encountered: