From bd9d9b3f5debfbdb85e1c9d093ea32d95c9c9568 Mon Sep 17 00:00:00 2001 From: eugene yokota Date: Mon, 24 Aug 2026 03:38:07 -0400 Subject: [PATCH] [2.x] Symlink CLAUDE.md to AGENTS.md (#9663) --- .prettierignore | 1 + AGENTS.md | 12 +++++++++--- CLAUDE.md | 1 + build.sbt | 5 +++-- project/Utils.scala | 3 ++- 5 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 .prettierignore create mode 120000 CLAUDE.md diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..de056073a --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +**/*.md diff --git a/AGENTS.md b/AGENTS.md index 8e3ed85d3..03b411844 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,7 +9,7 @@ Compiling with sbt ------------------ ```bash -sbt compile +sbt --client --color=false --supershell=false --batch compile ``` Pull request guideline @@ -24,7 +24,7 @@ Coding style ------------ ```bash -sbt scalafmtAll +sbt --client --color=false --supershell=false --batch scalafmtAll ``` - Follow [Coding style and best practices](contributing-docs/03_coding_style.md) @@ -40,6 +40,12 @@ For changes that require coordination with file changes and tasks, use scripted - [contributing-docs/05_scripted_tests.md](contributing-docs/05_scripted_tests.md) - [contributing-docs/06_manual_tests.md](contributing-docs/06_manual_tests.md) +For example, here's how to run "actions/compile" scripted test: + +```bash +sbt --color=false --supershell=false --client --batch scripted actions/compile +``` + Tech stack ---------- @@ -54,7 +60,7 @@ This means removing public method signature MUST be avoided. Use mima to check: ```bash -sbt mimaReportBinaryIssues +sbt --client --color=false --supershell=false --batch mimaReportBinaryIssues ``` Copyright diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 000000000..47dc3e3d8 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file diff --git a/build.sbt b/build.sbt index 1300d83e3..889221cbf 100644 --- a/build.sbt +++ b/build.sbt @@ -408,7 +408,7 @@ lazy val hashBenchmark = (project in file("internal") / "hash-benchmark") Jmh / run / javaOptions ++= Seq("-Xmx1G", "-Dfile.encoding=UTF8"), libraryDependencies ++= Seq(blake3, zeroAllocationHashing), mimaSettings, - publish / skip := true, + Utils.noPublish, ) // Builds on cache to provide caching for filesystem-related operations @@ -489,7 +489,7 @@ lazy val exampleWorkProj = (project in file("internal") / "example-work") .settings( minimalSettings, name := "example work", - publish / skip := true, + Utils.noPublish, ) // Basic task engine @@ -901,6 +901,7 @@ lazy val serverTestProj = (project in file("server-test")) IO.write(file, content) Seq(file) }, + Utils.noPublish, ) val isWin = scala.util.Properties.isWin diff --git a/project/Utils.scala b/project/Utils.scala index 38db2f21d..b3e8833af 100644 --- a/project/Utils.scala +++ b/project/Utils.scala @@ -4,7 +4,7 @@ import sbt.given import sbt.util.CacheImplicits.given import Keys.* import scalafix.sbt.ScalafixPlugin.autoImport.scalafix - +import PublishBinPlugin.autoImport.publishLocalBin import sbt.internal.inc.Analysis object Utils { @@ -20,6 +20,7 @@ object Utils { lazy val noPublish = Seq( publish := {}, publish / skip := true, + publishLocalBin / skip := true, ) lazy val javaOnlySettings: Seq[Setting[?]] = Seq(