-
Notifications
You must be signed in to change notification settings - Fork 908
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
Install location is invalid on Linux if the ChocolateyInstall environment variable is not set #2370
Labels
Milestone
Comments
This appears to be caused by the front slash being trimmed off in application parameters: |
TheCakeIsNaOH
added a commit
to TheCakeIsNaOH/choco
that referenced
this issue
Sep 18, 2021
Prevents the absolute path from being converted to a relative path by the removal of the first forward slash. Applicable to non-windows platforms, leaves Windows alone. Allows choco to find it's install location without requiring the ChocolateyInstall environment variable. Co-Authored-By: Kim J. Nordmo <1474648+AdmiringWorm@users.noreply.github.com>
gep13
pushed a commit
to TheCakeIsNaOH/choco
that referenced
this issue
Sep 19, 2021
Prevents the absolute path from being converted to a relative path by the removal of the first forward slash. Applicable to non-windows platforms, leaves Windows alone. Allows choco to find it's install location without requiring the ChocolateyInstall environment variable. Co-Authored-By: Kim J. Nordmo <1474648+AdmiringWorm@users.noreply.github.com>
gep13
pushed a commit
that referenced
this issue
Sep 21, 2021
Prevents the absolute path from being converted to a relative path by the removal of the first forward slash. Applicable to non-windows platforms, leaves Windows alone. Allows choco to find it's install location without requiring the ChocolateyInstall environment variable. Co-Authored-By: Kim J. Nordmo <1474648+AdmiringWorm@users.noreply.github.com>
TheCakeIsNaOH
added a commit
to TheCakeIsNaOH/choco
that referenced
this issue
Sep 22, 2021
Prevents the absolute path from being converted to a relative path by the removal of the first forward slash. Applicable to non-windows platforms, leaves Windows alone. Allows choco to find it's install location without requiring the ChocolateyInstall environment variable. Co-Authored-By: Kim J. Nordmo <1474648+AdmiringWorm@users.noreply.github.com>
gep13
changed the title
Install location is not gotten correctly on Linux if ChocolateyInstall is not set
Install location is invalid on Linux if the ChocolateyInstall environment variable is not set
Jan 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What You Are Seeing?
If the
ChocolateyInstall
environment variable is not set when running on Linux, choco cannot find it's install location.What is Expected?
That choco can correctly find it's install location even if
ChocolateyInstall
is not set.How Did You Get This To Happen? (Steps to Reproduce)
docker build -t mono-choco --target build -f docker/Dockerfile.linux .
cd /opt
mono /usr/local/src/choco/code_drop/chocolatey/console/choco.exe
C:/ProgramData/Chocolatey/lib
instead of at/usr/local/src/choco/code_drop/chocolatey/console/lib
export ChocolateyInstall=/usr/local/src/choco/code_drop/chocolatey/console
mono /usr/local/src/choco/code_drop/chocolatey/console/choco.exe
again/usr/local/src/choco/code_drop/chocolatey/console/lib
, which is correct.Output Log
Full Log Output without ChocolateyInstall
Full Log Output with ChocolateyInstall
The text was updated successfully, but these errors were encountered: