fermyon / cloud-plugin

A Spin plugin for the Spin CLI for managing Spin apps in Fermyon Cloud.
https://developer.fermyon.com/cloud/
Apache License 2.0
8 stars 13 forks source link

Prevent app with duplicate routes from being deployed to Cloud #208

Closed itowlson closed 4 months ago

itowlson commented 4 months ago

The current plugin allows an app to be deployed with duplicate routes. This fails in Cloud at runtime with a ghost error. This PR makes it fail deployment.

ivan@hestia:~/testing/dup-routes$ spin cloud deploy
Error: This application contains duplicate routes, which are not allowed in Fermyon Cloud.
- Route '/...' appears in components 'dupier-routes' and 'dup-routes'

Learn more at https://developer.fermyon.com/cloud/faq

(the FAQ is unhelpful here, but cannot currently be suppressed on a case-by-case basis)