Commit 3bd7085
committed
Make Cabal agnostic about working directory
This commit makes the library functions in Cabal agnostic of the working
directory. In practice, this means that we distinguish `FilePath`s
from un-interpreted `SymbolicPath`s. The latter may be paths that are
relative to the working directory, and need to be interpreted with
respect to a passed-in argument specifying the working directory,
instead of using the working directory of the current process.
See Note [Symbolic paths] in Distribution.Utils.Path.
In particular, paths in the package description now use the SymbolicPath
abstraction, which allows specifying whether they are allowed to be
absolute, and, if they are relative, what they are relative to.
For example, source files are relative to a source search directory,
data files are relative to the data directory, and doc files are
relative to the package root.
Fixes #97021 parent b334679 commit 3bd7085
File tree
214 files changed
+9490
-7003
lines changed- Cabal-described/src/Distribution
- Cabal-syntax
- src/Distribution
- FieldGrammar
- PackageDescription
- Types
- BuildInfo
- Executable
- ForeignLib
- PackageDescription
- Utils
- Cabal-tests/tests
- ParserTests/regressions
- UnitTests/Distribution/Utils
- custom-setup
- Cabal-tree-diff/src/Data/TreeDiff/Instances
- Cabal
- src/Distribution
- Compat
- Internal
- PackageDescription
- Check
- Simple
- Build
- GHC
- Build
- PreProcess
- Program
- Setup
- Test
- Types
- cabal-install
- src/Distribution/Client
- Init
- ProjectBuilding
- ProjectConfig
- ProjectPlanning
- Sandbox
- tests
- UnitTests/Distribution
- Client
- Solver/Modular
- cabal-testsuite
- PackageTests
- AutogenModules/SrcDist
- Backpack/Includes2
- BenchmarkStanza
- CCompilerOverride
- CustomPreProcess
- CustomTestCoverage
- InternalLibraries/Executable
- NewBuild/CmdTest
- OptionsFlag
- WarningRTS
- Regression
- T4798
- T5213ExeCoverage
- T5213
- T5309
- T6440
- TestCodeGenerator
- TestStanza
- TestSuiteTests/ExeV10
- main
- src/Test/Cabal
- changelog.d
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
214 files changed
+9490
-7003
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
582 | 586 | | |
583 | 587 | | |
584 | | - | |
| 588 | + | |
585 | 589 | | |
586 | 590 | | |
587 | | - | |
| 591 | + | |
588 | 592 | | |
589 | 593 | | |
590 | 594 | | |
591 | 595 | | |
592 | 596 | | |
593 | | - | |
594 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
277 | 282 | | |
278 | 283 | | |
279 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
280 | 320 | | |
281 | 321 | | |
282 | 322 | | |
| |||
0 commit comments