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

SNOW-1739867: snow --config-file... does not have any effect #1729

Open
sfc-gh-oazarmanesh opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@sfc-gh-oazarmanesh
Copy link

SnowCLI version

3.0.1

Python version

3.11.5

Platform

macOS-14.7-arm64-arm-64bit

What happened

I recently upgraded snowflake-cli and tried using it again. Previous version was version 1. My config file was here: ~/.snow/config.toml.

  • If I try testing a connection, I get a message: FileExistsError: [Errno 17] File exists: '/Users/oazarmanesh/.snow/config.toml'.
  • If I try snow --config-file="/Users/oazarmanesh/.snow/config.toml" I get this error:
An unexpected exception occurred. Use --debug option to see the traceback. Exception message:
[Errno 20] Not a directory: '/Users/oazarmanesh/.snow/config.toml/logs'
  • trying this (which I know isn't valid), snow --config-file "/Users/oazarmanesh/.snow" results in this error:
╭─ Error 
│ Invalid value for '--config-file': File '/Users/oazarmanesh/.snow' is a directory.

I renamed the folder to .snowflake but it didn't have any effect.

In short, snowflake-cli seems to always be looking in ~/Library/... folder for the config and connections files. snow --config-file... does not have any effect.

Console output

No response

How to reproduce

My guess is this issue happens due to update from version 1 to 3.

@github-actions github-actions bot changed the title snow --config-file... does not have any effect SNOW-1739867: snow --config-file... does not have any effect Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant