Files
sbt/sbt-app/src
Jozef Koval 27f1792e91 [2.x] fix: publishLocal must overwrite, remote publish must not (#9814)
Fixes #9813.

With overwrite = false, the default for non-snapshot versions, the ivyless
publisher kept an existing file and reported success, leaving stale bytes and
checksums. The HTTP paths took overwrite and never read it. sbt 1.x did the
opposite in both cases: file repositories warned and overwrote (22f47be29),
remote ones refused.

Restore that. File targets now warn and write through a temp file; HTTP targets
refuse after a HEAD probe that fails open. Also route a file: URLRepository,
Ivy or Maven layout, to the filesystem instead of httpPut.
2026-09-22 17:02:43 -04:00
..