Skip to content

Narrow dependency_validator range to avoid NNBD issue #342

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

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

sourcegraph-wk
Copy link

We recently discovered that if a package resolves to dependency_validator >=3.0.0
and build_config <1.0.0, running the dependency_validator tool will fail
during precompilation due to null safety.

We are merging a fix to dependency_validator, but unfortunately it won't
prevent consumers from resolving to the v3.x versions that still have the
issue. This PR addresses the issue for consumers by narrowing the range to
no longer include dependency_validator v3.

Note: We originally widened this range as a part of the effort to upgrade
our ecosystem to analyzer v1, but it is not strictly necessary. Consumers
of dependency_validator v2 can still successfully resolve to analyzer v1.

For more info, reach out to #support-frontend-architecture on Slack.

Created by Sourcegraph batch change Workiva/narrow_dependency_validator_range.

@aviary-wf
Copy link

Security Insights

(2) Vulnerable direct dependencies were detected
  • 1 vulns in ansi-regex < 4.1.1 via yarn.lock
  • 1 vulns in glob-parent < 5.1.2 via yarn.lock
  • Action Items


    Questions or Comments? Reach out on Slack: #support-infosec.

    build_runner: ^2.1.2
    build_test: ^2.1.3
    build_web_compilers: ^3.0.0
    dependency_validator: ^3.2.2
    Copy link
    Collaborator

    Choose a reason for hiding this comment

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

    Since this package is far enough upstream, we're able to upgrade to v3.2.2 which is the version with the fix for the NNBD issue. The rest of the dependency upgrades here are only for dev dependencies, which mean they don't impact downstream consumers.

    @evanweible-wf evanweible-wf requested review from aaronlademann-wf and a team and removed request for aaronlademann-wf July 11, 2022 22:07
    Copy link
    Collaborator

    @aaronlademann-wf aaronlademann-wf left a comment

    Choose a reason for hiding this comment

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

    +1

    @kimlarson-wk
    Copy link

    QA+1

    @kimlarson-wk
    Copy link

    @Workiva/release-management-pp ready for merge.

    Copy link

    @rmconsole-wf rmconsole-wf left a comment

    Choose a reason for hiding this comment

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

    +1 from RM

    @rmconsole7-wk rmconsole7-wk merged commit bcc05cd into master Jul 13, 2022
    @rmconsole7-wk rmconsole7-wk deleted the batch/fea/narrow_dependency_validator_range branch July 13, 2022 17:55
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    7 participants