SNOW-1243569: snow build --project flag broken
Closed this issue · 0 comments
fletchertyler914 commented
SnowCLI version
2.1.0
Python version
3.11.7
Platform
macOS-10.16-x86_64-i386-64bit
What happened
I have a directory structure which is somewhat a monorepo.
It has a LangSmith project and a snowpark project in the same directory:
-/Harmony # root
--/harmony_snowpark/ # snowpark project I want to build and deploy
---/harmony_package/
---/snowflake.yml.
--/harmony_agent/ # langchain project
if I am in the snowpark project directory and run build and deploy, it works perfectly:
# works perfectly!
cd harmony_snowpark
snow build
snow deploy
but if I try to run it from the project root directory (not snowpark project root), specifying the path with the project flag, it creates an empty zip file at the project root:
snow build --project=harmony_snowpark
i've tried different variations of paths, and they all generate an empty zip.
Console output
Build done. Artifact path: ~/harmony/harmony_package.zip
How to reproduce
- create a new directory
- navigate into new directory
- initialize a new snowpark project
- build the project from the root directory using the
--project
flag
mkdir snowpark_bug
cd snowpark_bug
snow snowpark init
snow snowpark build --project example_snowpark
Trying to open the zip file should result in the same "zip is empty or unreadable" error: