Skip to content

Conversation

jordanbreen28
Copy link
Contributor

@jordanbreen28 jordanbreen28 commented Apr 9, 2024

Summary

Fixes an issue where a valid Puppetfile which declares a module like below

forge 'https://forge.puppet.com'

mod 'puppetlabs/stdlib', '9.4.0'

would not supply hover information.

This was due to a missing replace statement in ./src/feature/PuppetfileHoverFeature.ts, which neglected to replace the / with a - to form a valid forge slug for API querying.

Additional Context

see #878

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

Copy link

codecov bot commented Apr 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.77%. Comparing base (6b59293) to head (751d9dc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #881   +/-   ##
=======================================
  Coverage   77.77%   77.77%           
=======================================
  Files           1        1           
  Lines           9        9           
=======================================
  Hits            7        7           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@LukasAud LukasAud left a comment

Choose a reason for hiding this comment

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

LGTM

@LukasAud LukasAud merged commit 119e1cd into main Apr 9, 2024
@LukasAud LukasAud deleted the gh-878-fix_puppetfile_hover branch April 9, 2024 15:42
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.

Puppetfile and module hover fails to fetch forge information due to incorrect API call URL

2 participants