astro-cli icon indicating copy to clipboard operation
astro-cli copied to clipboard

astro dev upgrade-test does not support dynamic path for .env

Open sakethsomaraju opened this issue 8 months ago • 0 comments

Describe the bug

astro dev upgrade-test does not support passing dynamic path for .env file to pass with --env option

While astro dev start and others support it., ex: astro dev start --env=.env/dev.env

sudo astro dev upgrade-test -a 3.0.0

Building image for current version
✔ Project image has been updated

Comparing dependency versions between current and upgraded environment

Obtaining pip freeze for current version

Building image for new version
✔ Project image has been updated

Obtaining pip freeze for new version

Comparing pip freeze files
Pip Freeze comparison can be found at /Users/sakethsomaraju/work/tickets/75692/upgrade-test-12.5.0--3.0-1/dependency_compare.txt
Checking the DAGs in this project for errors against the new Airflow version 3.0-1

Building image for new version
✔ Project image has been updated

Running DAG parse test with the new Airflow version
docker: read .env: is a directory.
See 'docker create --help'.
Error: something went wrong while parsing your DAGs: failed to execute cmd: exit status 125

What CLI Version did you experience this bug? 1.34.0

This CLI bug is related to which Astronomer Platform?

  • [Y] Astro
  • [ ] Software
  • [ ] None/Unknown

What Operating System is the above CLI installed on? MAC OS

🪜 Steps To Reproduce

  1. Run astro dev init -v 12.5.0
  2. Delete .env in the astro project and create dev.env file in .env directory.
  3. Run astro dev start --env=.env/dev.env
  4. Run astro dev upgrade-test -a 3.0.0

sakethsomaraju avatar Apr 28 '25 03:04 sakethsomaraju