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

Invalid reference format for Docker build command when no Astro project name is specified #1780

Open
1 of 3 tasks
thomas-lochner opened this issue Jan 7, 2025 · 0 comments

Comments

@thomas-lochner
Copy link

Describe the bug

Upon creation of a new Astro project, the astro cli runs into errors when a name for the project is not yet set. It took a while of debugging to figure this out, so a friendly warning here may be much more user-friendly.

Checking your DAGs for errors,
this might take a minute if you haven't run this command before…
[build --pull -t _832a2a/airflow:latest -f Dockerfile .]
[+] Building 0.0s (0/0)                                                                                                                                                                                                                                                                                                                 docker:desktop-linux
ERROR: invalid tag "_832a2a/airflow:latest": invalid reference format
Error: something went wrong while parsing your DAGs: command 'docker build -t _832a2a/airflow:latest failed: failed to execute cmd: exit status 1

What CLI Version did you experience this bug?
1.31.0

This CLI bug is related to which Astronomer Platform?

  • Astro
  • Software
  • None/Unknown

What Operating System is the above CLI installed on?
MacOS

🪜 Steps To Reproduce
Create a new Astro project and run an astro command. I was personally using astro dev parse.

📸 Screenshots

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

No branches or pull requests

1 participant