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

fix,tests: Improve search for Pulumi.yml and Pulumi.yaml to prevent 'not found' message; Add tests for Pulumi section #1417

Conversation

AndresMorelos
Copy link
Contributor

Description

With the current version of the Pulumi section each time that I arrive at a folder without the Pulumi.y*ml file the console adds an unneeded message spaceship_pulumi:6: no matches found: Pulumi.y*ml.

On this PR I improved the Pulumi search file since YAML only has two possible extensions .yml & .yaml; also I added test for this section.

Screenshot

CleanShot 2024-01-06 at 21 30 33

Tests passing

CleanShot 2024-01-06 at 21 35 51

…ent 'not found' message; Add tests for Pulumi section
Copy link

netlify bot commented Jan 7, 2024

Deploy Preview for spaceship-prompt ready!

Name Link
🔨 Latest commit d11d44a
🔍 Latest deploy log https://app.netlify.com/sites/spaceship-prompt/deploys/659a0e358c001a0008ded07e
😎 Deploy Preview https://deploy-preview-1417--spaceship-prompt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AndresMorelos AndresMorelos changed the title Improve search for Pulumi.yml and Pulumi.yaml to prevent 'not found' message; Add tests for Pulumi section fix,tests: Improve search for Pulumi.yml and Pulumi.yaml to prevent 'not found' message; Add tests for Pulumi section Jan 7, 2024
# Show PULUMI Stack when exists
local pulumi_project=$(spaceship::upsearch Pulumi.y*ml)
# Show PULUMI Stack when exist
local pulumi_project="$(spaceship::upsearch Pulumi.yml Pulumi.yaml)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should fix upsearch to work with globs.

@denysdovhan denysdovhan merged commit 134d979 into spaceship-prompt:master Mar 22, 2024
3 checks passed
denysdovhan pushed a commit that referenced this pull request Mar 27, 2024
## [4.15.1](v4.15.0...v4.15.1) (2024-03-27)

### Bug Fixes

* **pulumi:** Improve search for Pulumi.yml and Pulumi.yaml to prevent 'not found' message; Add tests for Pulumi section ([#1417](#1417)) ([134d979](134d979))
@denysdovhan
Copy link
Member

🎉 This PR is included in version 4.15.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@denysdovhan denysdovhan added the released Released issues and PRs label Mar 27, 2024
@Muratzero21
Copy link

Muratzero21 commented Mar 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Released issues and PRs
Development

Successfully merging this pull request may close these issues.

None yet

3 participants