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
Copy file name to clipboardExpand all lines: Changelog.md
+4
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# FOSSA CLI Changelog
2
2
3
+
## 3.9.30
4
+
5
+
- Vendored Dependencies: add support for metadata (description, and homepage) for dependencies. ([#1455](https://github.com/fossas/fossa-cli/pull/1455))
6
+
3
7
## 3.9.29
4
8
- install scripts: Surface curl errors and display http status code correctly. ([#1456](https://github.com/fossas/fossa-cli/pull/1456))
5
9
- Update jar-callgraph version to 1.0.2 [#1454](https://github.com/fossas/fossa-cli/pull/1454)
Copy file name to clipboardExpand all lines: docs/features/vendored-dependencies.md
+14-1
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,13 @@ vendored-dependencies:
17
17
- name: Django
18
18
path: vendor/Django-3.4.16.zip # path can be either a file or a folder.
19
19
version: "3.4.16"# revision will be set to the MD5 hash of the filepath if left unspecified.
20
+
# You can also provide a description and/or homepage. These values populate metadata fields in reports in the FOSSA web UI.
21
+
- name: Winston
22
+
path: vendor/winston.zip
23
+
version: "5.0.0-alpha"
24
+
metadata:
25
+
description: "winston archive"
26
+
homepage: "https://winston-project.com"
20
27
```
21
28
22
29
The path to a vendored dependency can either be a path to an archive or a path to a directory.
@@ -27,6 +34,8 @@ If the version is not specified, FOSSA CLI calculates the version by generating
27
34
28
35
Note: When parsed, YAML considers text that could be a decimal number (such as 1.0 or 2.0) to be a number, not a string. This means that we'd parse the version 1.0 as 1. This probably isn't what you want. To avoid this, surround your version with quotes, as in "1.0".
29
36
37
+
You can also optionally add metadata fields ("description" and "homepage") to populate these fields in the FOSSA web UI (these fields can be displayed when generating reports).
38
+
30
39
We also support json-formatted dependencies:
31
40
32
41
```json
@@ -63,7 +72,11 @@ We also support json-formatted dependencies:
Copy file name to clipboardExpand all lines: docs/references/files/fossa-deps.md
+16-11
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# `fossa-deps`
2
2
3
-
`fossa-deps` file is a file named `fossa-deps.{yaml, yml, json}` at the root of the project. It can be used to provide manual and vendor dependencies.
3
+
`fossa-deps` file is a file named `fossa-deps.{yaml, yml, json}` at the root of the project. It can be used to provide manual and vendor dependencies.
4
4
5
5
By default, the `fossa-deps.{yaml, yml, json}` file at the root of the project is used. However, if the `--fossa-deps-file` flag is present, then the provided `<name-of-file>.{yaml, yaml, json}` file will be used instead.
6
6
@@ -10,7 +10,7 @@ For more details on specifying a fossa-deps file, please refer to the [subcomman
10
10
11
11
### `referenced-dependencies:`
12
12
13
-
Denotes listing of dependencies, which are to be analyzed in conjunction with the analysis.
13
+
Denotes listing of dependencies, which are to be analyzed in conjunction with the analysis.
14
14
15
15
-`type`: Type of dependency. (Required)
16
16
-`name`: Name of the dependency. It should be the same name as listed in dependencies registry. (Required)
@@ -25,20 +25,20 @@ referenced-dependencies:
25
25
version: 2.1.7
26
26
```
27
27
28
-
For more details, please refer to the [feature](../../features/manual-dependencies.md) walk through.
28
+
For more details, please refer to the [feature](../../features/manual-dependencies.md) walk through.
29
29
30
30
### `custom-dependencies:`
31
31
32
-
Denotes listing of dependencies, which can't be automatically discovered or identified but are to be stubbed and included in the analysis.
32
+
Denotes listing of dependencies, which can't be automatically discovered or identified but are to be stubbed and included in the analysis.
33
33
34
34
- `name`: Name of the dependency. (Required)
35
35
- `version`: Revision of the dependency. (Required)
36
36
- `license`: License of the dependency. (Required)
37
37
- `metadata.homepage`: Homepage of the dependency. This metadata is used to enrich reporting provided in FOSSA's web interface.
38
38
- `metadata.description`: Description of the dependency. This metadata is used to enrich reporting provided in FOSSA's web interface.
39
39
40
-
Example:
41
-
```yaml
40
+
Example:
41
+
```yaml
42
42
- name: foo-wrapper
43
43
version: 1.2.3
44
44
license: MIT
@@ -47,7 +47,7 @@ Example:
47
47
description: Provides foo and a helpful interface around foo-like tasks.
48
48
```
49
49
50
-
For more details, please refer to the [feature](../../features/manual-dependencies.md) walk through.
50
+
For more details, please refer to the [feature](../../features/manual-dependencies.md) walk through.
51
51
52
52
### `remote-dependencies:`
53
53
@@ -62,29 +62,34 @@ Denotes listing of dependencies, whose source code is to be downloaded from prov
62
62
> Combined length of url and version has upper bound. It depends on your organization identifier. You can
63
63
find your organization identifier in FOSSA Webapp, by going to any project's "settings" page, and retrieving
64
64
numeric value from project's locator. For example, project locator of `custom+123/some-project-id`, means
65
-
`123`is your organization identifier.
65
+
`123`is your organization identifier.
66
66
67
67
> Combined length of `url`, `version`, and your `organizaion id` must be less than `241`.
68
68
69
-
For more details, please refer to the [feature](../../features/manual-dependencies.md) walk through.
69
+
For more details, please refer to the [feature](../../features/manual-dependencies.md) walk through.
70
70
71
71
### `vendored-dependencies:`
72
72
73
73
Denotes listing of files or directories, which are to be archived and uploaded to FOSSA backend for license scanning.
74
74
75
75
- `name`: Name of the dependency (Required)
76
76
- `path`: Local path to a file, or a directory (Required)
77
-
- `version`: Revision of the dependency. If not specified, the md5 hash of the file path will be used.
77
+
- `version`: Revision of the dependency. If not specified, the md5 hash of the file path will be used.
78
+
- `metadata.homepage`: Homepage of the dependency. This metadata is used to enrich reporting provided in FOSSA's web interface.
79
+
- `metadata.description`: Description of the dependency. This metadata is used to enrich reporting provided in FOSSA's web interface.
78
80
79
81
```yaml
80
82
vendored-dependencies:
81
83
- name: Django
82
84
path: vendor/Django-3.4.16.zip
83
85
version: 3.4.16
86
+
metadata:
87
+
homepage: https://djangoproject.com
88
+
description: Django
84
89
```
85
90
> Note: License scanning currently operates by uploading the files at the specified path to a secure S3 bucket. All files that do not contain licenses are then removed after 2 weeks.
86
91
87
-
For more details, please refer to the [feature](../../features/vendored-dependencies.md) walk through.
92
+
For more details, please refer to the [feature](../../features/vendored-dependencies.md) walk through.
Copy file name to clipboardExpand all lines: docs/walkthroughs/conan.md
+8-9
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Custom Integration with Conan Package Manager
2
2
3
-
Conan is a dependency and package manager for C and C++ languages. It is free and open-source, works on all
4
-
platforms (Windows, Linux, OSX, FreeBSD, Solaris, etc.), and can be used to develop for all targets, including
5
-
embedded, mobile (iOS, Android), and bare metal. It also integrates with all build systems like CMake,
3
+
Conan is a dependency and package manager for C and C++ languages. It is free and open-source, works on all
4
+
platforms (Windows, Linux, OSX, FreeBSD, Solaris, etc.), and can be used to develop for all targets, including
5
+
embedded, mobile (iOS, Android), and bare metal. It also integrates with all build systems like CMake,
6
6
Visual Studio (MSBuild), Makefiles, etc., including proprietary ones.
7
7
8
8
## Prerequisite
@@ -12,8 +12,8 @@ Visual Studio (MSBuild), Makefiles, etc., including proprietary ones.
12
12
13
13
## Integration
14
14
15
-
This integration uses the `conan graph info` command to retrieve the dependency graph and source code for all dependencies. From this data, it generates [fossa-deps](./../references/files/fossa-deps.md) file with
16
-
[vendor-dependencies](./../features/vendored-dependencies.md) and [custom-dependencies](../features/manual-dependencies.md).
15
+
This integration uses the `conan graph info` command to retrieve the dependency graph and source code for all dependencies. From this data, it generates [fossa-deps](./../references/files/fossa-deps.md) file with
16
+
[vendored-dependencies](./../features/vendored-dependencies.md) and [custom-dependencies](../features/manual-dependencies.md).
17
17
18
18
To use this integration,
19
19
1. Download [make_fossa_deps_conan.py](./make_fossa_deps_conan.py) python script, and place it in the same directory as `conanfile.txt` or `conanfile.py.`
@@ -32,7 +32,7 @@ In this approach, `make_fossa_deps_conan.py` does the followings:
32
32
33
33
### Limitations
34
34
35
-
This integration method uses [vendor-dependencies](./../features/vendored-dependencies.md) and [custom-dependencies](../features/manual-dependencies.md)
35
+
This integration method uses [vendored-dependencies](./../features/vendored-dependencies.md) and [custom-dependencies](../features/manual-dependencies.md)
36
36
functionalities, and as such, it does not provide the following,
37
37
38
38
- Security functionalities (FOSSA will not be able to identify vulnerabilities, only licensing and copyright issues)
@@ -92,11 +92,11 @@ script is supplied as a potential option if you want to start using FOSSA for Co
92
92
This integration example uses the `conan graph info` command with `--format json` and
93
93
`-c tools.build:download_source=True` option, which are only available in Conan v2 (`v2.0.0+`).
94
94
95
-
#### 3. I want to use a custom profile or provide additional options.
95
+
#### 3. I want to use a custom profile or provide additional options.
96
96
97
97
You can provide any additional [`conan graph info`](https://docs.conan.io/2.0/reference/commands/graph/info.html) options (except `--format` or `-f`)
98
98
99
-
To do so, provide options to the Python script. For example,
99
+
To do so, provide options to the Python script. For example,
0 commit comments