nanos-lint 3.1.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -148,8 +148,8 @@ OPTIONS:
148
148
  -i, --ignore <pattern> Files or directories to ignore (supports globs, repeatable, comma/newline-separated)
149
149
  -d, --dep <path> Path to package dependency directory or Lua definition file (repeatable; resolves relative to cwd)
150
150
  -l, --log-level <level> Logging level: error, warn, info, debug, silent (default: warn)
151
- silent suppresses all output, including the final report (only the exit code remains)
152
- error and warn (the default) suppress progress messages but still print the report
151
+ silent suppresses all output, including the final report and the progress display (only the exit code remains)
152
+ error and warn (the default) hide the info-level log lines and the non-interactive progress milestones but still print the report and the interactive progress bar
153
153
  debug adds diagnostic tracing
154
154
  --checklevel=<level> Minimum diagnostic level: Error, Warning, Information, Hint (default: Warning)
155
155
  --config=<path> Path to custom .luarc.json configuration file
@@ -159,9 +159,38 @@ OPTIONS:
159
159
  --luals-version=<ver> Version of LuaLS to use (default: latest, falling back to 3.19.1 when offline)
160
160
  --no-fail Do not exit with code 1 if diagnostics are found
161
161
  --realm <realm> Execution realm to check: all, client, server, shared (default: all)
162
+ --no-progress Disable the interactive download, extraction and realm derivation progress display
162
163
  -f, --force (init command only) Overwrite existing .luarc.json
163
164
  ```
164
165
 
166
+ ### Progress Display
167
+
168
+ Downloads and extractions (`LuaLS` archive, `annotations.lua`, realm derivation) report their
169
+ progress on **stderr**, so `stdout` keeps carrying only the diagnostic report:
170
+
171
+ ```
172
+ [luals] Downloading lua-language-server-3.19.1-linux-x64.tar.gz [=====> ] 37% (1.31 MB / 3.51 MB, 8.2 MB/s, ETA 0.3s)
173
+ [luals] Extracting lua-language-server-3.19.1-linux-x64.tar.gz ⠹ (2.4s)
174
+ ```
175
+
176
+ A live, in-place redraw is used only when stderr is an interactive terminal. Everywhere else
177
+ (CI runners, pipes, redirected output, `TERM=dumb`) the same information is emitted as discrete
178
+ single-line milestones, so logs stay free of carriage returns:
179
+
180
+ ```
181
+ [luals] Downloading lua-language-server-3.19.1-linux-x64.tar.gz: 25% (901 KB / 3.51 MB)
182
+ [luals] Downloaded lua-language-server-3.19.1-linux-x64.tar.gz (3.51 MB in 0.1s (37.3 MB/s))
183
+ ```
184
+
185
+ Dynamic redrawing is also disabled by `--no-progress`, `NANOS_NO_PROGRESS`, `--format json`,
186
+ `-l silent`, `CI`, `NO_COLOR` and `TERM=dumb`. When a transfer declares a compressed
187
+ `content-length` (GitHub serves `annotations.lua` gzip-encoded), the percentage is dropped in
188
+ favour of transferred bytes and speed instead of reporting a misleading total.
189
+
190
+ Machine-readable output owns `stdout`: with `--format json` (and `cache status --json`) the
191
+ milestones, completions and every other `info`/`debug` diagnostic move to `stderr` as well, so
192
+ `nanos-lint check . --format json -l info | jq .` works at any log level.
193
+
165
194
  ### Environment Variables
166
195
 
167
196
  | Variable | Description |
@@ -170,7 +199,8 @@ OPTIONS:
170
199
  | `NANOS_ANNOTATIONS_PATH`, `NANOS_ANNOTATIONS` | Explicit path to a custom `annotations.lua` file |
171
200
  | `NANOS_LOG_LEVEL` | Default logging level: `error`, `warn`, `info`, `debug`, `silent` (default: `warn`) |
172
201
  | `GITHUB_TOKEN` | GitHub personal access token used for authenticated GitHub API requests (avoids unauthenticated rate limits) |
173
- | `NO_COLOR` | Disables ANSI color output when set to any non-empty value |
202
+ | `NANOS_NO_PROGRESS` | Disables the interactive download/extraction progress display when set to any non-empty value other than `0`, `false`, `no` or `off` |
203
+ | `NO_COLOR` | Disables ANSI color output when set to any non-empty value; dynamic progress redrawing stops for any non-empty value other than `0`, `false`, `no` or `off` |
174
204
  | `FORCE_COLOR` | Forces ANSI color output even in non-TTY environments |
175
205
 
176
206
  Only `NANOS_LOG_LEVEL` controls the logging level; a generic `LOG_LEVEL` environment variable is intentionally not read, because CI images commonly set it.
package/action.yml CHANGED
@@ -172,5 +172,5 @@ runs:
172
172
  else
173
173
  # Exact version: a range could run a different release than the pinned
174
174
  # tag. Bump together with "version" in package.json.
175
- npx --yes nanos-lint@3.1.0 "${ARGS[@]}"
175
+ npx --yes nanos-lint@3.2.1 "${ARGS[@]}"
176
176
  fi