From ae38021f7b89cd3ec6b569fd5954a039813e7575 Mon Sep 17 00:00:00 2001 From: nscuro Date: Mon, 7 Feb 2022 20:23:54 +0100 Subject: [PATCH 1/2] feat: add gitpod configuration Signed-off-by: nscuro --- .gitpod.Dockerfile | 10 ++++++++++ .gitpod.yml | 9 +++++++++ README.md | 5 +++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..79cba2e --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,10 @@ +FROM gitpod/workspace-go:2022-02-04-10-54-10@sha256:8ea7684f6b1294c21065918880e6f31d16ac58b61361754b8d384b8e8f8279ae + +USER root + +RUN \ + wget -O "/usr/local/bin/cyclonedx" https://github.com/CycloneDX/cyclonedx-cli/releases/download/v0.22.0/cyclonedx-linux-x64 && \ + echo "ae39404a9dc8b2e7be0a9559781ee9fe3492201d2629de139d702fd4535ffdd6 /usr/local/bin/cyclonedx" | sha256sum -c && \ + chmod +x "/usr/local/bin/cyclonedx" + +USER gitpod \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..16ec5ca --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +image: + file: .gitpod.Dockerfile + +tasks: + - init: make build + +vscode: + extensions: + - golang.Go \ No newline at end of file diff --git a/README.md b/README.md index da8cfef..9279384 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ See the [LICENSE](./LICENSE) file for the full license. ## Contributing +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/CycloneDX/cyclonedx-go) + Pull requests are welcome. But please read the [CycloneDX contributing guidelines](https://github.com/CycloneDX/.github/blob/master/CONTRIBUTING.md) first. @@ -57,5 +59,4 @@ supported Go versions (see [Compatibility](#compatibility)) for every pull reque Some tests make use of the [CycloneDX CLI](https://github.com/CycloneDX/cyclonedx-cli), e.g. to validate BOMs. Make sure to download the CLI binary and make it available as `cyclonedx` in your `$PATH`. -See also *Setup CycloneDX CLI* in -the [workflow](https://github.com/CycloneDX/cyclonedx-go/blob/master/.github/workflows/ci.yml#L37). +This is done automatically for [Gitpod](https://gitpod.io/#https://github.com/CycloneDX/cyclonedx-go). \ No newline at end of file From c487c28d476372caf36e194cd005276669751eb9 Mon Sep 17 00:00:00 2001 From: nscuro Date: Mon, 7 Feb 2022 20:26:54 +0100 Subject: [PATCH 2/2] docs: update supported spec version in readme Signed-off-by: nscuro --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9279384..b19fef8 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## Installation ``` -GO111MODULE=on go get github.com/CycloneDX/cyclonedx-go +go get github.com/CycloneDX/cyclonedx-go ``` ## Usage @@ -28,9 +28,9 @@ Also, checkout the [`examples`](./example_test.go) to get an idea of how this li | cyclonedx-go versions | Supported Go versions | Supported CycloneDX spec | |:---------------------:|:---------------------:|:------------------------:| -| < v0.4.0 | 1.14+ | 1.2 | -| == v0.4.0 | 1.14+ | 1.3 | -| >= v0.5.0 | 1.15+ | 1.3 | +| < v0.4.0 | 1.14+ | 1.2 | +| == v0.4.0 | 1.14+ | 1.3 | +| >= v0.5.0 | 1.15+ | 1.4 | We're aiming to support all [officially supported](https://golang.org/doc/devel/release.html#policy) Go versions, plus an additional older version.