mirror of
https://github.com/DeterminateSystems/nix-installer-action.git
synced 2024-12-23 13:32:06 +01:00
Add logging directives
This commit is contained in:
parent
8910100981
commit
195f007ef0
3 changed files with 17 additions and 1 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -139,6 +139,12 @@ class NixInstallerAction {
|
||||||
if (this.mac_root_disk !== null) {
|
if (this.mac_root_disk !== null) {
|
||||||
execution_env.NIX_INSTALLER_ROOT_DISK = this.mac_root_disk;
|
execution_env.NIX_INSTALLER_ROOT_DISK = this.mac_root_disk;
|
||||||
}
|
}
|
||||||
|
if (this.logger !== null) {
|
||||||
|
execution_env.NIX_INSTALLER_LOGGER = this.logger;
|
||||||
|
}
|
||||||
|
if (this.log_directives !== null) {
|
||||||
|
execution_env.NIX_INSTALLER_LOG_DIRECTIVES = this.log_directives;
|
||||||
|
}
|
||||||
// TODO: Error if the user uses these on MacOS
|
// TODO: Error if the user uses these on MacOS
|
||||||
if (this.init !== null) {
|
if (this.init !== null) {
|
||||||
execution_env.NIX_INSTALLER_INIT = this.init;
|
execution_env.NIX_INSTALLER_INIT = this.init;
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
10
src/main.ts
10
src/main.ts
|
@ -152,6 +152,14 @@ class NixInstallerAction {
|
||||||
execution_env.NIX_INSTALLER_ROOT_DISK = this.mac_root_disk
|
execution_env.NIX_INSTALLER_ROOT_DISK = this.mac_root_disk
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.logger !== null) {
|
||||||
|
execution_env.NIX_INSTALLER_LOGGER = this.logger
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.log_directives !== null) {
|
||||||
|
execution_env.NIX_INSTALLER_LOG_DIRECTIVES = this.log_directives
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Error if the user uses these on MacOS
|
// TODO: Error if the user uses these on MacOS
|
||||||
if (this.init !== null) {
|
if (this.init !== null) {
|
||||||
execution_env.NIX_INSTALLER_INIT = this.init
|
execution_env.NIX_INSTALLER_INIT = this.init
|
||||||
|
@ -378,6 +386,8 @@ type ExecuteEnvironment = {
|
||||||
NIX_INSTALLER_START_DAEMON?: string
|
NIX_INSTALLER_START_DAEMON?: string
|
||||||
NIX_INSTALLER_NO_CONFIRM?: string
|
NIX_INSTALLER_NO_CONFIRM?: string
|
||||||
NIX_INSTALLER_EXTRA_CONF?: string
|
NIX_INSTALLER_EXTRA_CONF?: string
|
||||||
|
NIX_INSTALLER_LOG_DIRECTIVES?: string
|
||||||
|
NIX_INSTALLER_LOGGER?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_nix_platform(): string {
|
function get_nix_platform(): string {
|
||||||
|
|
Loading…
Reference in a new issue