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

feat: Support "minSupported" in target definition #35

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

jsumners-nr
Copy link
Contributor

This adds support for reading the minimum supported version of a module from the targets array.

Also updates deps.

Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

LGTM

@jsumners-nr jsumners-nr merged commit 023ae85 into newrelic:main Sep 16, 2024
6 checks passed
@jsumners-nr jsumners-nr deleted the min-supported-enhancement branch September 16, 2024 19:52
for _, test := range pkg.Tests {
if test.Supported == false {
continue
if target.MinSupported == "" {
Copy link
Member

Choose a reason for hiding this comment

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

this must now be present. i was thinking of only including it when needed. I think that's why this PR removed some files newrelic/node-newrelic#2581

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Future readers: this is incorrect. The issue was that a target did not have a minSupported attribute and was not listed in the tests. When we encounter an error parsing a versioned test manifest, we omit all of the data in that manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

2 participants