Commit graph

22 commits

Author SHA1 Message Date
Leonardo de Moura
b986bde639 fix: IO.Error.alreadyExists may have an optional file name
We got an assertion violation yesterday at `leanpkg` at
```cpp
  case EEXIST: case EINPROGRESS: case EISCONN:
        lean_assert(fname == nullptr);   // <<<<<<< HERE
        return lean_mk_io_error_already_exists(errnum, details);
```
2021-07-27 07:00:06 -07:00
Sebastian Ullrich
1ebcf76d48 refactor: remove explicitly lifted IO functions and move more things into IO.FS
Automatic lifting takes care of this, and it wasn't consistently applied anyway
2021-06-11 17:53:51 -07:00
Sebastian Ullrich
744423f25a fix: leanpkg: make flags; extend test 2021-05-30 17:29:54 +02:00
Sebastian Ullrich
db304448de fix: leanpkg: rebuild if dependencies or leanpkg.toml (e.g. lean_version) changed 2021-05-30 17:29:54 +02:00
Sebastian Ullrich
0e7ed52111 feat: leanpkg: suppress "uncaught exception: ..." message 2021-05-30 17:29:54 +02:00
Sebastian Ullrich
6857076df4 feat: leanpkg build without external dependencies 2021-05-30 17:29:54 +02:00
Sebastian Ullrich
8cb116ed11 feat: leanpkg: better root file detection 2021-05-30 17:29:54 +02:00
Sebastian Ullrich
9f72ebe29b fix: source search path from leanpkg print-paths 2021-05-28 15:30:42 +02:00
Sebastian Ullrich
619873c842 feat: make System.FilePath opaque 2021-05-28 14:19:59 +02:00
Sebastian Ullrich
4354534fda feat: make FilePath a concrete type
Resolves #363
2021-05-28 14:19:59 +02:00
Sebastian Ullrich
3438f425f1 feat: leanpkg init: emit lean_version 2021-04-06 14:38:17 +02:00
Sebastian Ullrich
e4926e4b14 feat: generalize leanpkg build 2021-01-25 17:07:08 -08:00
Sebastian Ullrich
38911d1be3 feat: Nix: support leanpkg print-paths setup 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
8ad061e328 feat: leanpkg: change print-path to print-paths that also emit LEAN_SRC_PATH (unused as of yet) 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
a63e39767c fix: withLockFile on Windows 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
343036cf00 feat: leanpkg: use per-package lock file to prevent concurrent redundant builds 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
9c8f360dd3 feat: leanpkg: print-path 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
607d788001 chore: leanpkg: secondary output to stderr 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
a199f35330 fix: leanpkg: do not rely on PATH 2021-01-13 16:39:00 +01:00
Sebastian Ullrich
db0d2e45fe doc: dependencies & editors 2021-01-03 21:23:52 +01:00
Sebastian Ullrich
a7e89f6d7e fix: leanpkg on Windows 2020-12-30 21:07:07 +01:00
Sebastian Ullrich
9e237f8a12 feat: basic port of leanpkg 2020-12-29 14:42:48 -08:00