You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add experimental-download-offline-databases flag (#1039)
Currently flags `experimental-offline` and `experimental-local-db` are
confusing sometimes.
This PR renames `experimental-local-db` to
`experimental-download-database` to make it more explicit whether to
download the database or not.
For now, `experimental-download-database` only works when
`experimental-offline` is set.
`internal/local` is also modified to reflect the change in the naming
and meaning of this flag.
Copy file name to clipboardExpand all lines: docs/offline-mode.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ If the `OSV_SCANNER_LOCAL_DB_CACHE_DIRECTORY` environment variable is _not_ set,
49
49
1. The location returned by [`os.UserCacheDir`](https://pkg.go.dev/os#UserCacheDir)
50
50
2. The location returned by [`os.TempDir`](https://pkg.go.dev/os#TempDir)
51
51
52
-
The database can be [downloaded manually](./experimental.md#manual-database-download) or by using the [`--experimental-local-db` flag](./experimental.md#local-database-option).
52
+
The database can be [downloaded manually](./experimental.md#manual-database-download) or by using the [`--experimental-download-offline-databases` flag](./experimental.md#download-databases-option).
53
53
54
54
## Offline option
55
55
@@ -59,17 +59,17 @@ The offline database flag `--experimental-offline` causes OSV-Scanner to scan yo
The local database flag `--experimental-local-db` causes OSV-Scanner to download or update your local database and then scan your project against it.
64
+
The download offline databases flag `--experimental-download-offline-databases` allows OSV-Scanner to download or update your local database when running in offline mode, to make it easier to get started. This option only works when you also set the offline flag.
0 commit comments