-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add optional subdirectory for stage in application package #1916
base: main
Are you sure you want to change the base?
Conversation
…kedb/snowflake-cli into pj-subartifacts-subdirs
src/snowflake/cli/_plugins/nativeapp/codegen/templates/templates_processor.py
Outdated
Show resolved
Hide resolved
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
return ( | ||
self.project_root | ||
/ self._entity_model.deploy_root | ||
/ self._entity_model.stage_subdirectory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this changing? Seems like an unnecessary complication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deploy_root is now deploy_root/subdir. So all the actions (bundle, deploy, etc) that need to refer to deploy root to write/read artifacts look at this subdir.
I don't think I understand what you mean by unnecessary complication.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean why is the deploy root now deploy_root/subdir?
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
tests_integration/test_data/projects/napp_stage_subdirs/snowflake.yml
Outdated
Show resolved
Hide resolved
tests_integration/test_data/projects/napp_stage_subdirs/snowflake.yml
Outdated
Show resolved
Hide resolved
8347118
to
b94bad5
Compare
Pre-review checklist
Changes description
Added an optional
stage_subdirectory
to the application package.This change means that the root of the stage is no longer the assumed path to finding the artifacts and the
manifest.yml
. If specified, the application package will only ever operate onstage/stage_subdirectory
. This includesdeploy
,diff
, andversion create
.For detailed information on how this affects each command, if specified, refer to the design document.