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

Trace warning is outputted even when --trace argument is not used #3621

Closed
6 tasks done
AdmiringWorm opened this issue Feb 3, 2025 · 2 comments · Fixed by #3623
Closed
6 tasks done

Trace warning is outputted even when --trace argument is not used #3621

AdmiringWorm opened this issue Feb 3, 2025 · 2 comments · Fixed by #3623
Assignees
Milestone

Comments

@AdmiringWorm
Copy link
Member

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • 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?

When attempting to run Chocolatey CLI in a non-elevated mode, a warning is outputted to the user about the --trace option not being available, despite the argument not being used.

What is Expected?

When the argument is not used, it was not expected that this warning would be outputted.

How Did You Get This To Happen?

  1. From a non-elevated session, without Background Service enabled, run choco search chocolatey.
  2. Notice a warning about the trace option is outputted.

System Details

  • Operating System: Windows 11
  • Windows PowerShell version: 5.1.26100.2161
  • Chocolatey CLI Version: 2.4.2
  • Chocolatey Licensed Extension version: 6.3.1
  • Chocolatey License type: Business
  • Terminal/Emulator: Tabby

Installed Packages

1password 8.10.58
1password8 8.10.58
7zip.install 24.9.0
baretail 3.50.0.20120226
bitwarden 2025.1.3
bruno 1.36.1
burnttoast-psmodule 0.8.5
cakerecipe-vscode 0.5.0
chef-workstation 24.12.1073
choco-ccm-onboard 1.1.0
choco-cloudflared-tunnel-config 1.1.0
choco-falcon-security 6.49.16303
chocolatey 2.4.2
chocolatey.extension 6.3.1
chocolatey-agent 2.2.2
chocolatey-community-validation.extension 0.2.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-font-helpers.extension 0.0.4
chocolateygui 2.1.1
chocolateygui.extension 2.0.0
chocolatey-license 2024.9.25
chocolatey-misc-helpers.extension 0.0.4
chocolatey-visualstudio.extension 1.11.1
chocolatey-vscode 0.7.2
chocolatey-vscode.extension 1.1.0
chocolatey-windowsupdate.extension 1.0.5
choco-rapid7-insight-agent 2023.7.23
choco-toast-notifications.hook 1.1.0
ci-cd-assets-vscode 0.5.0
cleanup-desktop-shortcuts.hook 0.1.0-alpha-20221103
cloudflared 2024.12.2
credentialmanager.powershell 3.0.2
discord 1.0.9180
discord.install 1.0.9180
DotNet4.6.1 4.6.1055.20170308
dotnet4.7 4.7.2053.20190226
dotnet-6.0-desktopruntime 6.0.36
dotnet-9.0-desktopruntime 9.0.1
dotnet-desktopruntime 9.0.1
dotnetfx 4.8.0.20220524
Firefox 134.0.2
gh 2.66.1
git 2.47.1.20250115
git.install 2.47.1.20250115
glab 1.52.0
glab.portable 1.52.0
gpg4win 4.4.0
gsudo 2.5.1
hwmonitor 1.55.0.20240927
ilspy 9.0.0
irfanview 4.70.0
irfanviewplugins 4.70.0
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
KB3118401 1.0.5
keybase 6.4.0
k-litecodecpackfull 18.7.5
languagetool 6.5.0
libreoffice-still 24.8.4
librewolf 133.0.3.1
lockhunter 3.4.3.20220526
meld 3.22.0
microsoft-ui-xaml-2-7 2.7.3
microsoft-vclibs-140-00 14.0.33321
nerd-fonts-FiraCode 3.3.0
notepadplusplus.install 8.7.6
nssm 2.24.101.20180116
nuget.commandline 6.12.2
obsidian 1.8.4
oh-my-posh 24.18.0
onedarkpro-vscode 3.18.0
op 2.30.3
paint.net 5.1.2
pcloud 4.1.10
poshgit 0.7.3.1
PowerShell 5.1.14409.20180811
powershell-core 7.4.6.20241029
powertoys 0.88.0
protonvpn 3.4.3
psexec 2.43.0
pwsh 7.4.6.20241029
slack 4.42.115
spotify 1.2.56.502
tabby 1.0.216
thunderbird 128.6.0
vagrant 2.4.3
vcredist140 14.42.34433
vcredist2015 14.0.24215.20170201
ventoy 1.1.0
virtualbox 7.1.4
visualstudio2022professional 117.12.2
visualstudio-installer 2.0.3
vlc.install 3.0.21
vmwareworkstation 17.6.1.24319023
vscode 1.96.4
vscode.install 1.96.4
vscode-chrome-debug 4.13.0
vscode-csharp 1.26.0
vscode-editorconfig 1.0.0.20181011
vscode-firefox-debug 2.14.0
vscode-gitattributes 0.4.1.20190310
vscode-gitignore 0.9.0
vscode-gitlens 1.0.0.20181011
vscode-icons 1.0.0.20190314
vscode-intellicode 1.3.2
vscode-markdown-all-in-one 3.4.0
vscode-markdownlint 1.0.0.20181011
vscode-powershell 2025.0.0
vscode-prettier 11.0.0
vscode-vsliveshare 1.0.5948
vswhere 3.1.7
winget-cli 1.9.25200
winmerge 2.16.46
zoom 6.3.6.56144
120 packages installed.

Output Log

https://gist.github.com/AdmiringWorm/09ef24c3d0241abc712dc8e5cf73398a

Additional Context

No response

@AdmiringWorm
Copy link
Member Author

This is a duplicate of #3622 as it needs to be back-ported to 1.x

@AdmiringWorm AdmiringWorm self-assigned this Feb 3, 2025
AdmiringWorm added a commit to AdmiringWorm/choco that referenced this issue Feb 3, 2025
This updates the warning that is outputted in non-elevated mode to not
be outputted when the user has not specified `--trace` on the
commandline.

Without this change, any time a use are running in a non-elevated mode,
they will always have the trace warning outputted even when they haven't
used the argument.
gep13 added a commit that referenced this issue Feb 4, 2025
(#3621) Skip trace warning when trace not used
@gep13 gep13 closed this as completed Feb 4, 2025
@choco-bot
Copy link

🎉 This issue has been resolved in version 1.4.3 🎉

The release is available on:

Your GitReleaseManager bot 📦 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants