Skip to content

fix: allow no services#837

Merged
jyecusch merged 1 commit intonitrictech:mainfrom
HomelessDinosaur:fix/allow-no-services
Dec 30, 2024
Merged

fix: allow no services#837
jyecusch merged 1 commit intonitrictech:mainfrom
HomelessDinosaur:fix/allow-no-services

Conversation

@HomelessDinosaur
Copy link
Member

With an invalid stack file with matches not pointing to any files:

services:
    match: invalid-path/*.dart
    start: dart run --observe $SERVICE_PATH
    runtime: dart
batch-services:
    match: invalid-path/*.dart
    start: dart run --observe $SERVICE_PATH
    runtime: dart

nitric run
Old:

Local cloud started successfully
 error  no services found in project, nothing to build. This may indicate misconfigured `match` patterns in your nitric.yaml file

New:

error  unable to match service files for pattern fun/*.dart. This may indicate misconfigured `match` patterns in your nitric.yaml file

nitric start
Old: Default no services tui (see screenshot)
New:

error  unable to match service files for pattern fun/*.dart. This may indicate misconfigured `match` patterns in your nitric.yaml file

nitric spec
Old:

error  no services found in project, nothing to build. This may indicate misconfigured `match` patterns in your nitric.yaml file

New:

error  unable to match service files for pattern fun/*.dart. This may indicate misconfigured `match` patterns in your nitric.yaml file

nitric up
Old:

error  no services found in project, nothing to build. This may indicate misconfigured `match` patterns in your nitric.yaml file

New:

error  unable to match service files for pattern fun/*.dart. This may indicate misconfigured `match` patterns in your nitric.yaml file

With a valid stack file that contains no matches:

services: []
batch-services: []

nitric run
Old:

Local cloud started successfully
 error  no services found in project, nothing to build. This may indicate misconfigured `match` patterns in your nitric.yaml file

New: Default no services tui (see screenshot)

nitric start
Old and New: Default no services tui (see screenshot)

nitric spec
Old:

error  no services found in project, nothing to build. This may indicate misconfigured `match` patterns in your nitric.yaml file

New:

build   Building Services                                        
Successfully outputted deployment spec to ./nitric-spec.json

nitric up
Old:

error  no services found in project, nothing to build. This may indicate misconfigured `match` patterns in your nitric.yaml file

New: Deploys

Screenshot 2024-12-30 at 10 14 22 AM

@jyecusch jyecusch merged commit ba30595 into nitrictech:main Dec 30, 2024
5 checks passed
@nitric-bot
Copy link
Contributor

🎉 This PR is included in version 1.55.16 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants