aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/installer
Commit message (Collapse)AuthorAgeFilesLines
...
* refactor(expr): better handling of nil values (#1056)William Boman2023-03-051-8/+11
|
* feat(InstallContext): add strict_mode flag (#1055)William Boman2023-03-052-1/+20
| | | Also add some more ctx.fs methods.
* refactor: simplify linker & receipt writing (#1033)William Boman2023-02-262-6/+21
|
* feat(installer): add share links (#965)William Boman2023-02-172-19/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(installer): add share links Adds the ability to symlink share files to ~/.local/share/nvim/mason/share (default location). This is currently not used by any packages but will be soon (e.g. linking .jar files to a canonical location on the fs). This also includes the following changes: - fix(windows): correctly unlink executables Prior to this change, executables on Windows would not be removed when uninstalling a package. - refactor(installer): use Result interfaces The motivation behind this is to move away from exceptions and pcalls to leverage the Result interface. This allows for better error messaging during installation, as well as improved composability of actions that may or may not fail. - refactor(bin): use absolute paths in exec wrapper scripts While relative paths are preferred and will end up returning in the future, they i) cannot be guaranteed for all packages, and ii) is somewhat complicated to produce due to lack of std APIs. Moving the entire Mason installation directory was never officially supported anyway. - feat(installer): add "force" flag When this flag is true, any existing executables or share files will be overridden if they exist (i.e. mangle another package installation). * refactor(result): always return Result objects in Result.try The rationale here used to be that exceptions in Result.try() blocks were treated truly as exceptions that should interrupt code execution per Lua's traditional error handling semantics. However, Lua code is somewhat prone to raise exceptions when you don't expect it to (especially when interacting with loosely documented external APIs). Combine this with the fact that code that invokes Result.try() blocks generally doesn't `pcall` and only relies on the Result API to handle errors, you end up with code that only gracefully handles one class of errors (the well-known ones). * test(terminator): sleep in tests to avoid race condition I've no idea why this doesn't pass in CI, works just fine locally.
* refactor(expr): rename to interpolate (#836)William Boman2023-01-021-10/+12
|
* refactor(installer): write debug log file after installation finishes (#806)William Boman2022-12-261-0/+19
|
* feat(expr): add tbl_interpolate() (#805)William Boman2022-12-261-3/+39
|
* feat(functional): add strip_{prefix,suffix} (#803)William Boman2022-12-261-1/+1
|
* refactor(async): error with stack level 0 (#801)William Boman2022-12-261-1/+1
|
* feat(expr): use same context for value & filter evaluation (#778)William Boman2022-12-201-4/+30
|
* feat: add expr module (#775)William Boman2022-12-201-0/+57
| | | | | This is (soon) to be used when installing package definitions from https://github.com/mason-org/mason-registry/. See for example: https://github.com/mason-org/mason-registry/blob/7df69dd2a73efc3a08520552ca64597d1db5f4fb/packages/go-debug-adapter/package.yaml#L16
* feat(platform): accept darwin (#743)William Boman2022-12-082-0/+2
| | | | | Mac systems are generally referred to as the Darwin OS. For all intents and purposes, "mac" and "darwin" can be used interchangeably (although darwin will be preferred going forward).
* feat: more competent platform detection (#436)William Boman2022-09-172-8/+8
|
* refactor: store link state in install context object (#419)William Boman2022-09-141-6/+20
|
* refactor: add ctx:write_php_exec_wrapper utility (#409)William Boman2022-09-121-0/+35
|
* fix(EventEmitter): properly deregister handlers, print errors that occur in ↵William Boman2022-09-031-4/+12
| | | | handler (#373)
* fix(installer): use /usr/bin/env bash shebang (#315)William Boman2022-08-191-1/+1
| | | Fixes #308.
* test(installer): add spec files for context and linker (#314)William Boman2022-08-192-0/+280
| | | | | | | * feat(installer): don't write exec wrappers for targets that don't exist Just a precaution to avoid writing broken executables. * test(installer): add spec files for context and linker
* refactor: introduce selene, harden type defs, and use proper EmmyLua syntax ↵William Boman2022-08-151-1/+0
| | | | (#296)
* tests: add some InstallHandle tests (#67)William Boman2022-07-132-0/+200