diff --git a/.github/.cspell/project-dictionary.txt b/.github/.cspell/project-dictionary.txt index 06865f1e0..ad5020a64 100644 --- a/.github/.cspell/project-dictionary.txt +++ b/.github/.cspell/project-dictionary.txt @@ -4,6 +4,7 @@ bindgen binstall coreutils cyclonedx +deepsource distro doas dprint diff --git a/TOOLS.md b/TOOLS.md index e3ad552f8..438d09407 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -34,6 +34,7 @@ If a tool not included in the list below is specified, this action uses [cargo-b | [**cargo-valgrind**](https://github.com/jfrimmel/cargo-valgrind) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/jfrimmel/cargo-valgrind/releases) | Linux, macOS, Windows | [MIT](https://github.com/jfrimmel/cargo-valgrind/blob/master/LICENSE-MIT) OR [Apache-2.0](https://github.com/jfrimmel/cargo-valgrind/blob/master/LICENSE-APACHE) | | [**cargo-zigbuild**](https://github.com/rust-cross/cargo-zigbuild) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/rust-cross/cargo-zigbuild/releases) | Linux, macOS, Windows | [MIT](https://github.com/rust-cross/cargo-zigbuild/blob/main/LICENSE) | | [**cross**](https://github.com/cross-rs/cross) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/cross-rs/cross/releases) | Linux, macOS, Windows | [MIT](https://github.com/cross-rs/cross/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/cross-rs/cross/blob/main/LICENSE-APACHE) | +| [**deepsource**](https://github.com/DeepSourceCorp/cli) | `/usr/local/bin` | [GitHub Releases](https://github.com/DeepSourceCorp/cli/releases) | Linux, macOS, Windows | [BSD-2-Clause](https://github.com/DeepSourceCorp/cli/blob/master/LICENSE) | | [**dprint**](https://github.com/dprint/dprint) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/dprint/dprint/releases) | Linux, macOS, Windows | [MIT](https://github.com/dprint/dprint/blob/main/LICENSE) | | [**earthly**](https://github.com/earthly/earthly) | `/usr/local/bin` | [GitHub Releases](https://github.com/earthly/earthly/releases) | Linux, macOS, Windows | [MPL-2.0](https://github.com/earthly/earthly/blob/main/LICENSE) | | [**editorconfig-checker**](https://github.com/editorconfig-checker/editorconfig-checker) | `/usr/local/bin` | [GitHub Releases](https://github.com/editorconfig-checker/editorconfig-checker/releases) | Linux, macOS, Windows | [MIT](https://github.com/editorconfig-checker/editorconfig-checker/blob/main/LICENSE) | diff --git a/manifests/deepsource.json b/manifests/deepsource.json new file mode 100644 index 000000000..bbf4af601 --- /dev/null +++ b/manifests/deepsource.json @@ -0,0 +1,44 @@ +{ + "rust_crate": null, + "template": { + "x86_64_linux_gnu": { + "url": "https://github.com/DeepSourceCorp/cli/releases/download/v${version}/deepsource_${version}_linux_amd64.tar.gz" + }, + "x86_64_macos": { + "url": "https://github.com/DeepSourceCorp/cli/releases/download/v${version}/deepsource_${version}_darwin_amd64.tar.gz" + }, + "x86_64_windows": { + "url": "https://github.com/DeepSourceCorp/cli/releases/download/v${version}/deepsource_${version}_windows_amd64.tar.gz" + }, + "aarch64_linux_gnu": { + "url": "https://github.com/DeepSourceCorp/cli/releases/download/v${version}/deepsource_${version}_linux_arm64.tar.gz" + }, + "aarch64_macos": { + "url": "https://github.com/DeepSourceCorp/cli/releases/download/v${version}/deepsource_${version}_darwin_arm64.tar.gz" + } + }, + "license_markdown": "[BSD-2-Clause](https://github.com/DeepSourceCorp/cli/blob/master/LICENSE)", + "latest": { + "version": "0.8.6" + }, + "0.8": { + "version": "0.8.6" + }, + "0.8.6": { + "x86_64_linux_gnu": { + "checksum": "40490fa8403496d354ac5e69ba4a71c287bee579d4413b62ee54c5c3038792ca" + }, + "x86_64_macos": { + "checksum": "0970061b4755ecce8736f1d9bc8932cdafb452528432267ce33a0d566a3ecdeb" + }, + "x86_64_windows": { + "checksum": "10d7bf2d6d8073a20f47982fd1db4f285666c1a6be2d89f555b097676da106d2" + }, + "aarch64_linux_gnu": { + "checksum": "9f4f2a22ec412ed826e011afca3bb49979e4ee89434abbf8086324c5b9ccc074" + }, + "aarch64_macos": { + "checksum": "b4223a8a03f16853cdbc4d5d40a586fa9291167e55d21f051ae3bf0c359f693a" + } + } +} diff --git a/tools/ci/tool-list.sh b/tools/ci/tool-list.sh index 816cfbb69..d37617ef6 100755 --- a/tools/ci/tool-list.sh +++ b/tools/ci/tool-list.sh @@ -27,6 +27,7 @@ glibc_pre_2_27_incompat=( ) musl_incompat=( "${glibc_pre_2_27_incompat[@]}" + deepsource ) incompat_tools=() diff --git a/tools/codegen/base/deepsource.json b/tools/codegen/base/deepsource.json new file mode 100644 index 000000000..dc6d281a6 --- /dev/null +++ b/tools/codegen/base/deepsource.json @@ -0,0 +1,22 @@ +{ + "repository": "https://github.com/DeepSourceCorp/cli", + "tag_prefix": "v", + "version_range": ">= 0.8.6", + "platform": { + "x86_64_linux_gnu": { + "asset_name": "${package}_${version}_linux_amd64.tar.gz" + }, + "x86_64_macos": { + "asset_name": "${package}_${version}_darwin_amd64.tar.gz" + }, + "x86_64_windows": { + "asset_name": "${package}_${version}_windows_amd64.tar.gz" + }, + "aarch64_linux_gnu": { + "asset_name": "${package}_${version}_linux_arm64.tar.gz" + }, + "aarch64_macos": { + "asset_name": "${package}_${version}_darwin_arm64.tar.gz" + } + } +}