1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/app
Paul Cadman 511e99f217
Use Package.juvix in the global project (#2499)
## Global package configuration

This PR updates the global-project to use `Package.juvix` instead of
`juvix.yaml`.

The global package gets the following `Package.juvix`:

```
module Package;

import PackageDescription.V1 open;

package : Package :=
  defaultPackage
    {name := "global-juvix-package";
     version := mkVersion 0 0 0;
     dependencies := [defaultStdlib]};
```

## juvix clean --global

This PR also adds an option `-g/--global` to `juvix clean` that removes
the `$XDG_CONFIG_HOME/juvix/VERSION` directory.

## Testing notes

If you've already run Juvix 0.5.3 you'll need to run `juvix clean -g`
before you'll use the new global project. This will not be an issue for
users of Juvix 0.5.4 (as this version of Juvix will never generate
juvix.yaml in the global project).

Part of:
* https://github.com/anoma/juvix/issues/2487
2023-11-06 11:49:43 +00:00
..
Commands Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00
TopCommand Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00
App.hs Rename Roots type to Root (#2480) 2023-10-30 14:05:52 +01:00
AsmInterpreter.hs Refactor Core datastructures (#1975) 2023-04-04 18:58:05 +02:00
CommonOptions.hs Add FileExt type (#2467) 2023-10-25 12:02:12 +02:00
Evaluator.hs Use a Juvix source file to define a package (#2434) 2023-10-27 12:35:20 +01:00
GlobalOptions.hs Rename Roots type to Root (#2480) 2023-10-30 14:05:52 +01:00
Main.hs Rename Roots type to Root (#2480) 2023-10-30 14:05:52 +01:00
TopCommand.hs Use Package.juvix in the global project (#2499) 2023-11-06 11:49:43 +00:00