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
returnnil, fmt.Errorf("--experimental-licenses requires comma-separated spdx licenses. The following license(s) are not recognized as spdx: %s", strings.Join(unrecognized, ","))
Copy file name to clipboardExpand all lines: docs/offline-mode.md
+10-16
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,13 @@
1
1
---
2
2
layout: page
3
3
title: Offline Mode
4
-
permalink: /experimental/offline-mode/
5
-
parent: Experimental Features
4
+
permalink: /usage/offline-mode/
5
+
parent: Usage
6
6
nav_order: 1
7
7
---
8
8
9
9
# Offline Mode
10
10
11
-
Experimental
12
-
{: .label }
13
-
14
11
{: .no_toc }
15
12
16
13
<detailsopenmarkdown="block">
@@ -22,10 +19,7 @@ Experimental
22
19
{:toc}
23
20
</details>
24
21
25
-
OSV-Scanner now supports offline scanning as an experimental feature. Offline scanning checks your project against a local database instead of calling the OSV.dev API.
26
-
27
-
{: .note }
28
-
This feature is experimental and might change or be removed with only a minor version update.
22
+
OSV-Scanner now supports offline scanning as an official feature. Offline scanning checks your project against a local database instead of calling the OSV.dev API.
29
23
30
24
## Specify database location
31
25
@@ -49,29 +43,29 @@ If the `OSV_SCANNER_LOCAL_DB_CACHE_DIRECTORY` environment variable is _not_ set,
49
43
1. The location returned by [`os.UserCacheDir`](https://pkg.go.dev/os#UserCacheDir)
50
44
2. The location returned by [`os.TempDir`](https://pkg.go.dev/os#TempDir)
51
45
52
-
The database can be [downloaded manually](#manual-database-download) or by using the [`--experimental-download-offline-databases` flag](#download-offline-databases-option).
46
+
The database can be [downloaded manually](#manual-database-download) or by using the [`--download-offline-databases` flag](#download-offline-databases-option).
53
47
54
48
## Offline option
55
49
56
-
The offline database flag `--experimental-offline` causes OSV-Scanner to scan your project against a previously downloaded local database. OSV-Scanner will not download or update the local database, nor will it send any project or dependency information anywhere. When a local database is not present, you will get an error message. No network connection is required when using this flag.
50
+
The offline database flag `--offline` causes OSV-Scanner to scan your project against a previously downloaded local database. OSV-Scanner will not download or update the local database, nor will it send any project or dependency information anywhere. When a local database is not present, you will get an error message. No network connection is required when using this flag.
To use offline mode for just the vulnerability database, but allow other features to possibly make network requests (e.g. [transitive dependency scanning](./supported_languages_and_lockfiles.md/#transitive-dependency-scanning)), you can use the `--experimental-offline-vulnerabilities` flag instead.
56
+
To use offline mode for just the vulnerability database, but allow other features to possibly make network requests (e.g. [transitive dependency scanning](./supported_languages_and_lockfiles.md/#transitive-dependency-scanning)), you can use the `--offline-vulnerabilities` flag instead.
63
57
64
58
## Download offline databases option
65
59
66
-
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.
60
+
The download offline databases flag `--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