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

Slash '/' in 'name:' of azure.yaml will break service packaging #4638

Open
1 task done
crpietschmann opened this issue Dec 17, 2024 · 1 comment
Open
1 task done
Labels
customer-reported identify a customer issue question

Comments

@crpietschmann
Copy link

Output from azd version
Run azd version and copy and paste the output here:

azd version 1.11.0 (commit 5b92e0687e1fa96dfc8292f4b900c0c58610b6a5)

Describe the bug
When the name: within azure.yaml contains a slash / character, it breaks the packaging of services.

error that ocurrs:

root@MacBookPro azd-react-bootstrap-dashboard # azd package api

Packaging services (azd package)

  (x) Failed: Packaging service api

ERROR: failed packaging service 'api': failed when creating zip package to deploy api: open /tmp/build5nines/azd-react-bootstrap-dashboard-api-azddeploy-1734478898.zip: no such file or directory

To Reproduce

  1. change the name: of the template in the azure.yaml file to have a slash / character in it; such as `build5nines/azd-react-bootstrap-dashboard'
  2. add a service for a web project, such as a node.js app

Expected behavior
It's expected that the service packaging complete successfully, or gives a warning that the name contains an invalid character.

root@MacBookPro azd-react-bootstrap-dashboard # azd package api     

Packaging services (azd package)

  (✓) Done: Packaging service api
  - Package Output: /tmp/build5nines-azd-react-bootstrap-dashboard-api-azddeploy-1734479080.zip

  (-) Skipped: Packaging service dashboard

Environment
Information on your environment:
* Language name and version: Node.js v23.3.0
* IDE and version : Latest VS Code
* OS: macOS

Additional context
Add any other context about the problem here.

@NanaXiong00
Copy link

This issue can be reproduced, and we will fix it in the following approach:

If there is a slash / in the "name:" of azure.yaml, change the / to - when packaging without any prompts.

CC: @rajeshkamal5050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported identify a customer issue question
Projects
None yet
Development

No branches or pull requests

2 participants