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

Disable progress bar #169

Open
JeanChristopheMorinPerso opened this issue Oct 18, 2024 · 2 comments
Open

Disable progress bar #169

JeanChristopheMorinPerso opened this issue Oct 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@JeanChristopheMorinPerso

Hello, while running the conda project lock command in a GitHub Actions workflow, I noticed that the progress bar was still doing its thing as it I was running it with a proper terminal emulator.

This results in hundreds of log line line these:

Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◜ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◠ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◝ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◞ 
Locking dependencies for environment default on platforms linux-64, linux-aarch64, osx-arm64: ◡ 

Is there a way to disable this progress bar? I couldn't find any way to disable that in the code, but maybe I'm missing something?

Thanks!

@AlbertDeFusco
Copy link
Contributor

I'll add a check for os.isatty() there

@AlbertDeFusco
Copy link
Contributor

and also a --quiet flag

@AlbertDeFusco AlbertDeFusco added the bug Something isn't working label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants