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

write_manifest include extra files does not work when executed outside of target directory #416

Closed
bcwu opened this issue Apr 28, 2023 · 0 comments · Fixed by #417
Closed

Comments

@bcwu
Copy link
Contributor

bcwu commented Apr 28, 2023

Related to #411

write_manifest include extras is bugged at the moment when we try to include the extra file from outside the folder:

mkdir app
touch app/.env app/main.py
pip install rsconnect-python==1.16.0
rsconnect write-manifest streamlit app app/.env

# Results:
> Checking arguments...                            [OK]
> Inspecting Python environment...                 [OK]
> Creating manifest.json...                        [ERROR]
Error: ../.env must be under app.

The temporary workaround by cd into the app directory before executing the command:

cd app
rsconnect write-manifest streamlit ./ ./env
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

Successfully merging a pull request may close this issue.

1 participant