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

Ignore dependencies introduced by plugins #584

Merged
merged 2 commits into from
Jun 17, 2019

Conversation

fthomas
Copy link
Member

@fthomas fthomas commented Jun 17, 2019

This ignores dependencies of a repo which are not defined in the build
files but are introduced by plugins. This allows scala-steward to prune
more repositories it doesn't need to look at. Without this scala-steward
tried to update dependencies which were never defined in the build files
and therefore couldn't be updated.

This ignores dependencies of a repo which are not defined in the build
files but are introduced by plugins. This allows scala-steward to prune
more repositories it doesn't need to look at. Without this scala-steward
tried to update dependencies which were never defined in the build files
and therefore couldn't be updated.
@fthomas fthomas added the enhancement New feature or request label Jun 17, 2019
@fthomas fthomas added this to the 0.3.0 milestone Jun 17, 2019
@codecov
Copy link

codecov bot commented Jun 17, 2019

Codecov Report

Merging #584 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #584      +/-   ##
==========================================
- Coverage   59.09%   59.04%   -0.05%     
==========================================
  Files          67       67              
  Lines         858      857       -1     
  Branches       40       39       -1     
==========================================
- Hits          507      506       -1     
  Misses        351      351
Impacted Files Coverage Δ
...main/scala/org/scalasteward/core/sbt/command.scala 100% <100%> (ø) ⬆️
...main/scala/org/scalasteward/core/sbt/package.scala 63.63% <100%> (-3.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3774160...88c1371. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jun 17, 2019

Codecov Report

Merging #584 into master will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #584      +/-   ##
==========================================
- Coverage   59.09%   59.04%   -0.05%     
==========================================
  Files          67       67              
  Lines         858      857       -1     
  Branches       40       39       -1     
==========================================
- Hits          507      506       -1     
  Misses        351      351
Impacted Files Coverage Δ
...main/scala/org/scalasteward/core/sbt/command.scala 100% <100%> (ø) ⬆️
...main/scala/org/scalasteward/core/sbt/package.scala 63.63% <100%> (-3.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3774160...88c1371. Read the comment docs.

@fthomas fthomas merged commit 3b16304 into master Jun 17, 2019
@fthomas fthomas deleted the topic/ignore-deps-from-plugins branch June 17, 2019 21:32
fthomas added a commit that referenced this pull request Oct 19, 2020
This reverts #584 which shouldn't be needed any more since #1188.

The goal of #584 was to ignore dependencies that are added by plugins
because those dependencies cannot be updated. Unfortunately this
solution is brittle because it also ignores plugins that are added via
`addSbtPlugin` in `settings`, see http4s/sbt-http4s-org#26 (comment).
(They also have a source position like ` LinePosition(Defaults.scala,...)`.)

A similar optimization was later added in #1188 which ignores all
dependencies whose versions number cannot be found in files of the repo.
This optimization also covers dependencies that are added by plugins.
Let's see if this is good enough to also cover #584.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant