mirror of https://github.com/sbt/sbt.git
fix project1/ignore-hidden-build-files
This commit is contained in:
parent
4a946a68cd
commit
d9b024cf91
|
|
@ -1217,6 +1217,7 @@ private[sbt] object Load {
|
|||
|
||||
// Default sbt files to read, if needed
|
||||
lazy val defaultSbtFiles = configurationSources(projectBase)
|
||||
.filterNot(_.isHidden)
|
||||
.map(_.getAbsoluteFile().toPath)
|
||||
.map(converter.toVirtualFile)
|
||||
lazy val sbtFiles = defaultSbtFiles ++ extraSbtFiles
|
||||
|
|
@ -1264,11 +1265,9 @@ private[sbt] object Load {
|
|||
// case sf: SbtFiles =>
|
||||
// sf.files
|
||||
// .map(f => IO.resolve(projectBase, f))
|
||||
// .filterNot(_.isHidden)
|
||||
// .map(_.toPath)
|
||||
case sf: DefaultSbtFiles =>
|
||||
sbtFiles.filter(sf.include)
|
||||
// .filterNot(_.isHidden)
|
||||
// .map(_.toPath)
|
||||
case q: Sequence =>
|
||||
q.sequence.foldLeft(Seq.empty[VirtualFile]) { (b, add) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue