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-1540572: When running an app from a given --project path, the post_deploy scripts must be found relative to that path #1325

Closed
etorreborre opened this issue Jul 16, 2024 · 2 comments · Fixed by #1340
Labels
bug Something isn't working native apps

Comments

@etorreborre
Copy link

SnowCLI version

2.6.1

Python version

3.11.18

Platform

macOS-14.2.1-arm64-arm-64bit

What happened

I am running a snowflake.yaml file to start an app, with the --project option:

> snow app run --project my_path

That file specifies a script to run as post_deploy but the script is not found, unless I give a full path, starting from the point where I'm invoking the snow command.

Console output

The error is 

Executing application post-deploy actions
  Executing SQL script: scripts/post_deploy.sql

An unexpected exception occurred. Use --debug option to see the traceback. Exception message:

[Errno 2] No such file or directory: 'scripts/post_deploy.sql'


### How to reproduce

This can be reproduced by takin [this test example](https://github.com/snowflakedb/snowflake-cli/tree/8f638f4938ddb2957c011effdbeef173482051c4/tests_integration/test_data/projects/napp_application_post_deploy) and nesting it into a `root` directory.

Then from the `root` directory run:

snow app run --project napp_application_post_deploy

@github-actions github-actions bot changed the title When running an app from a given --project path, the post_deploy scripts must be found relative to that path SNOW-1540572: When running an app from a given --project path, the post_deploy scripts must be found relative to that path Jul 16, 2024
@sfc-gh-pczajka sfc-gh-pczajka added bug Something isn't working native apps labels Jul 17, 2024
@etorreborre
Copy link
Author

Hi @sfc-gh-melnacouzi, thanks for fixing this issue!
Do you have an idea of when a new release will incorporate the fix?

@sfc-gh-melnacouzi
Copy link
Contributor

Hi @sfc-gh-melnacouzi, thanks for fixing this issue! Do you have an idea of when a new release will incorporate the fix?

@etorreborre we should have a new release within 2 weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working native apps
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants