Skip to content

Commit

Permalink
Update databroker versions to 0.4.0
Browse files Browse the repository at this point in the history
Also do "cargo update" and add misssing license file
  • Loading branch information
erikbosch committed Jul 28, 2023
1 parent 1f426ca commit a1c9d50
Show file tree
Hide file tree
Showing 8 changed files with 498 additions and 365 deletions.
831 changes: 471 additions & 360 deletions Cargo.lock

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions kuksa_databroker/createbom/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# BOM Generator

Generates a BOM

## Troubleshooting

If you run it and you get errors like:

```
Could not find license file for 0BSD in adler
Error: BOM creation failed, unresolved licenses detected
```

The a possible reason is that the `Cargo.lock` in the repository has been updated and some components use licenses
not covered here. This can be solved by:

* Find the corresponding license test. Check for instance [SPDX](https://spdx.org/licenses/)
* Verify that license is feasible for our use.
* Download or create a text file with the license text, do `gzip` and put it in `licensestore` folder.
* Add the identifier (in the example above `0BSD`) to `maplicensefile.py`
2 changes: 2 additions & 0 deletions kuksa_databroker/createbom/bomutil/maplicensefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@
"ISC": "ISC.txt.gz",
"ring": "ring.LICENSE.txt.gz",
"rustls-webpki": "webpki.LICENSE.txt.gz",
# License text taken from https://spdx.org/licenses/0BSD.html
"0BSD": "0BSD.txt.gz",
}
Binary file added kuksa_databroker/createbom/licensestore/0BSD.txt.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion kuksa_databroker/databroker-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

[package]
name = "databroker-cli"
version = "0.3.1"
version = "0.4.0"
authors = ["Robert Bosch GmbH"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion kuksa_databroker/databroker-examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

[package]
name = "databroker-examples"
version = "0.3.1"
version = "0.4.0"
authors = ["Robert Bosch GmbH"]
edition = "2018"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion kuksa_databroker/databroker-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

[package]
name = "databroker-proto"
version = "0.3.1"
version = "0.4.0"
authors = ["Robert Bosch GmbH"]
edition = "2018"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions kuksa_databroker/databroker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

[package]
name = "databroker"
version = "0.3.1"
version = "0.4.0"
authors = ["Robert Bosch GmbH"]
edition = "2018"
license = "Apache-2.0"
Expand Down Expand Up @@ -68,7 +68,7 @@ libtest = []
anyhow = "1.0"
vergen = { version = "8", features = [
"cargo",
"git",
"git",
"gitoxide",
] }

Expand Down

0 comments on commit a1c9d50

Please sign in to comment.