backstage / software-templates

Backstage Software Templates for creating a new software component
Apache License 2.0
136 stars 368 forks source link

github.com/project-slug in catalog-info.yaml shown "undefined:undefined" #43

Open peiwang-converge opened 4 months ago

peiwang-converge commented 4 months ago

I tried to run scaffolder-templates/clean-architecture-app, but catalog-info.yaml showned "undefined:undefined". Wonder what am I missing?

The code in catalog-info.yaml has

  annotations:
    github.com/project-slug: ${{values.destination.owner + "/" + values.destination.repo}}

but I don't see values.destination defined any where. What did I missed?

peiwang-converge commented 4 months ago

It turned out we just need to add below line in scaffolder-templates/clean-architecture-app/template.yaml in line 108:

      destination: ${{ parameters.repoUrl | parseRepoUrl }}