snowflakedb / snowflakedb/snowflake-cli

SNOW-1061616: Support for .snowignore File to Exclude Cache Files from `snow object stage copy` Command

Open
#792 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

core enhancement
Dominant language
Python
Stars
267
Forks
117
PR merge metrics
No merged PRs in 30d

Description

Description

Description

When using the snow object stage copy command in the Snowflake CLI, it has been observed that unnecessary cache files are also being uploaded, which ideally should not be part of the staging process. This behavior can lead to clutter and potentially increased costs due to the storage of unwanted files.

Proposed Solution

Introduce support for a .snowignore file, similar in concept to .gitignore or .dockerignore, which would allow users to specify patterns for files and directories that should be excluded from uploads.

Request for Input

  • Are there any existing workarounds to prevent specific files or directories from being uploaded that I might have missed?
  • I would appreciate feedback on the proposed solution and any suggestions on the implementation approach.
  • Additionally, I am willing to contribute to the implementation of this feature. Would it be acceptable for me to develop this functionality and submit a pull request?

Thank you for considering this enhancement to improve the Snowflake CLI experience.

Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementation and tests for the snow object stage copy command. Review how it currently selects files for upload, then determine the intended .snowignore pattern behavior and add coverage for excluded cache files. Done means the command honors the documented ignore rules without uploading matching files.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.