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

Conflict of CPack in PATH #649

Closed
2 of 5 tasks
dragon-archer opened this issue Mar 31, 2020 · 2 comments
Closed
2 of 5 tasks

Conflict of CPack in PATH #649

dragon-archer opened this issue Mar 31, 2020 · 2 comments
Assignees
Labels
Area: Image administration awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug Something isn't working OS: Windows

Comments

@dragon-archer
Copy link

Describe the bug
There are two cpack.exe in PATH

  1. The alias of choco pack for Chocolatey
  2. The pack module of the CMake suite

The first one (placed in %ChocolateyInstall%\bin\) is in front of the second one (placed in CMake installtion dir), so when use cpack in cmd, it will call the first one.
But actually, the first one is just an alias, while the second one is an important program, and the second one is more important the the first one.

Area for Triage:
Packages

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • macOS 10.15
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Windows Server 2016 R2
  • Windows Server 2019

Expected behavior
The cpack in CMake suite is in front of the alias in PATH, and cpack command will call the second one above.

Actual behavior
The cpack command call the alias

Solution
There are two ways to solve this problem

  1. Remove the alias (can be done with del /F /Q %ChocolateyInstall%\bin\cpack.exe)
  2. Change the PATH order, put the Chocolatey behind CMake
@xnorpx
Copy link

xnorpx commented Mar 31, 2020

this one is really annoying please fix

@al-cheb al-cheb self-assigned this Apr 2, 2020
@al-cheb al-cheb added Area: Image administration bug Something isn't working OS: Windows awaiting-deployment Code complete; awaiting deployment and/or deployment in progress and removed needs triage labels Apr 2, 2020
@al-cheb
Copy link
Contributor

al-cheb commented Apr 27, 2020

Hello, @dragon-archer
The default cmake has been set to - C:\Program Files\CMake\bin\cpack.exe

cpack

Feel free to open the thread if you have any concerns.

@al-cheb al-cheb closed this as completed Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Image administration awaiting-deployment Code complete; awaiting deployment and/or deployment in progress bug Something isn't working OS: Windows
Projects
None yet
Development

No branches or pull requests

3 participants