sbt / sbt-ghpages

git, site and ghpages support for sbt projects.
Other
91 stars 20 forks source link

/path/to/tmpdirectory overwrites sites from other projects #11

Closed eed3si9n closed 9 years ago

eed3si9n commented 9 years ago

steps

Follow README and make a minimal project without name or organization set:

import com.typesafe.sbt.site.PamfletSupport._

lazy val root = (project in file("."))
  .settings(
    site.settings,
    site.pamfletSupport(),
    ghpages.settings,
    git.remoteRepo := "git@github.com:sbt/sbt.github.com.git"
  )

Publish to gh-pages. Let's call this scala-sbt.org.

Make another project with different content. baz.com. Publish to gh-pages.

problem

The content of baz.com is published to scala-sbt.org.

expectation

  1. The content of baz.com is published to baz.com.
  2. If organization and name are used, document it on README.
  3. Detect collision in some way and warn the user.

    notes

/path/to/tmpdirectory mentioned in the README is actually

repository <<= (name,organization) apply ((n,o) => file(System.getProperty("user.home")) / ".sbt" / "ghpages" / o / n),      

In my case both bar.com and baz.com would have ~/.sbt/ghpages/root/root.

jsuereth commented 9 years ago

0.5.4 should fix this issue.

eed3si9n commented 9 years ago

:fireworks: