Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Sep 7, 2024
1 parent 651a860 commit 162c0b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
20 changes: 10 additions & 10 deletions docs/modules/ROOT/pages/Mill_Sandboxing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ include::example/depth/sandbox/1-task.adoc[]

include::example/depth/sandbox/2-test.adoc[]

// === Limitations of Mill's Sandboxing
//
// Mill's approach to filesystem sandboxing is designed to avoid accidental interference
// between different Mill tasks. It is not designed to block intentional misbehavior, and
// tasks are always able to traverse the filesystem and do whatever they want. Furthermore,
// Mill's redirection of `os.pwd` does not apply to `java.io` or `java.nio` APIs, which are
// outside of Mill's control.
//
// However, by setting `os.pwd` to safe sandbox folders, we hope to minimize the cases where
// someone accidentally causes issues with their build by doing the wrong thing.
== Limitations

Mill's approach to filesystem sandboxing is designed to avoid accidental interference
between different Mill tasks. It is not designed to block intentional misbehavior, and
tasks are always able to traverse the filesystem and do whatever they want. Furthermore,
Mill's redirection of `os.pwd` does not apply to `java.io` or `java.nio` APIs, which are
outside of Mill's control.

However, by setting `os.pwd` to safe sandbox folders, we hope to minimize the cases where
someone accidentally causes issues with their build by doing the wrong thing.
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,13 @@ object DocAnnotationsTests extends UtestIntegrationTestSuite {
| args <str>...
|
|Inputs:
| core.finalMainClass
| core.finalMainClassOpt
| core.runClasspath
| core.forkArgs
| core.forkEnv
| core.forkWorkingDir
| core.runUseArgsFile
| core.finalMainClass
| core.forkWorkingDir
|""",
run
)
Expand Down

0 comments on commit 162c0b2

Please sign in to comment.