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

Fail on non-dev packages with executables that are only used within bin/ #107

Closed

Conversation

matthewnitschke-wk
Copy link
Contributor

@matthewnitschke-wk matthewnitschke-wk commented Mar 11, 2024

Motivation

Changes

dependency_validator passes if there is a non-dev (dependencies:) dep, that contains executables, but is only referenced within the bin/ directory

Under the following conditions, the dependency should be downgraded to a dev_dependency, and dependency_validator exits with a non-zero exit code

Important

Merging this PR has a chance to break existing implementations, we may want to do this as a major, depending on how best we want to support current implementations of dep validator

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

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

Comment on lines +24 to +25
# - name: Check formatting
# run: dart format --output=none --set-exit-if-changed .
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Formatting hasn't been ran on the repo in awhile due to the matrix.sdk == 'stable' check

Will put up a different PR, running formatting, so as to not obscure the changes here with formatting diffs

@matthewnitschke-wk matthewnitschke-wk marked this pull request as ready for review March 11, 2024 18:06
@matthewnitschke-wk matthewnitschke-wk requested a review from a team March 11, 2024 20:11
dustyholmes-wf
dustyholmes-wf previously approved these changes Mar 11, 2024
evanweible-wf
evanweible-wf previously approved these changes Mar 28, 2024
@matthewnitschke-wk
Copy link
Contributor Author

This feature has been absorbed in the #111 branch

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.

Fail when a package is a non-dev dependency and is only referenced by its scripts Old readme instructions
5 participants