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

Multi project: Too many open files error #138

Open
Pitometsu opened this issue Sep 5, 2018 · 3 comments
Open

Multi project: Too many open files error #138

Pitometsu opened this issue Sep 5, 2018 · 3 comments

Comments

@Pitometsu
Copy link

Pitometsu commented Sep 5, 2018

Hi, I have shared setting for build info like:

  lazy val  buildInfoSettingsNamed: String => SettingsDefinition =
    info =>
      Seq(
        buildInfoPackage := "com.package.info",
        buildInfoObject := info,
        buildInfoOptions += BuildInfoOption.BuildTime,
        buildInfoOptions += BuildInfoOption.Traits("com.MyTraitName"),
        buildInfoKeys :=
          Seq[BuildInfoKey](
            name,
            resolvers,
            baseDirectory,
            libraryDependencies
          )
      )

And 3 projects:

val project1 = (project in file("project1"))
  .enablePlugins(BuildInfoPlugin)
  .settings((name := "project1") ++ buildInfoSettingsNamed("Project1Metadata"))

val project2 = (project in file("project2"))
  .enablePlugins(BuildInfoPlugin)
  .settings((name := "project2") ++ buildInfoSettingsNamed("Project2Metadata"))

val project3 = (project in file("project3"))
  .dependsOn(project1, project2)
  .enablePlugins(BuildInfoPlugin)
  .settings((name := "project3") ++ buildInfoSettingsNamed("Project3Metadata"))

And I get error Could not create file project1/target/streams/$global/coursierResolutions/$global/streams/outjava.io.IOException: Too many open files when trying to compile the project3.

@Pitometsu
Copy link
Author

Both project1 and project2 builds fine. project3 builds only when build info disabled there.

@Pitometsu
Copy link
Author

How can I use dependsOn and BuildInfoPlugin in project3?

@Pitometsu
Copy link
Author

Looks like it doing

[info] Updating project3
[info] Resolved project3 dependencies
[info] Updating project3
[info] Resolved project3 dependencies
[info] Updating project3
[info] Resolved project3 dependencies
...

recursively 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant