From 0cc82158cfe7d6c17b37dd0d8ab024342f6ed7ad Mon Sep 17 00:00:00 2001 From: danmx Date: Mon, 26 Oct 2020 10:45:51 +0100 Subject: [PATCH 1/2] fix(golangci-lint): windows version & bump version to 1.32.0 Signed-off-by: danmx --- golangci-lint/BUILD | 2 +- golangci-lint/deps.bzl | 8 ++++---- golangci-lint/golangci-lint_windows.BUILD | 4 ++++ 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 golangci-lint/golangci-lint_windows.BUILD diff --git a/golangci-lint/BUILD b/golangci-lint/BUILD index ea81bcf..6dd6033 100644 --- a/golangci-lint/BUILD +++ b/golangci-lint/BUILD @@ -3,7 +3,7 @@ alias( actual = select({ "@com_github_danmx_bazel_tools//bazel/platforms:linux-x86_64": "@golangci-lint-linux-amd64//:golangci-lint", "@com_github_danmx_bazel_tools//bazel/platforms:macos-x86_64": "@golangci-lint-darwin-amd64//:golangci-lint", - "@com_github_danmx_bazel_tools//bazel/platforms:windows-x86_64": "@golangci-lint-windows-amd64//:golangci-lint", + "@com_github_danmx_bazel_tools//bazel/platforms:windows-x86_64": "@golangci-lint-windows-amd64//:golangci-lint.exe", }), visibility = ["//visibility:public"], ) diff --git a/golangci-lint/deps.bzl b/golangci-lint/deps.bzl index d304175..492910b 100644 --- a/golangci-lint/deps.bzl +++ b/golangci-lint/deps.bzl @@ -17,8 +17,8 @@ def golangci_lint_dependencies(): ) http_archive( name = "golangci-lint-windows-amd64", - urls = ["https://github.com/golangci/golangci-lint/releases/download/v1.31.0/golangci-lint-1.31.0-windows-amd64.tar.gz"], - sha256 = "6ce6b1d3207a63256d82fbbac80bb9e85d7705ec1a408f005dfe324457c54966", - build_file = "@com_github_danmx_bazel_tools//golangci-lint:golangci-lint.BUILD", - strip_prefix = "golangci-lint-1.31.0-windows-amd64", + urls = ["https://github.com/golangci/golangci-lint/releases/download/v1.32.0/golangci-lint-1.32.0-windows-amd64.zip"], + sha256 = "97a69c2a153cd4285b7000b327aa6e77b694534e7463cbd1b77481c22b6113cf", + build_file = "@com_github_danmx_bazel_tools//golangci-lint:golangci-lint_windows.BUILD", + strip_prefix = "golangci-lint-1.32.0-windows-amd64", ) diff --git a/golangci-lint/golangci-lint_windows.BUILD b/golangci-lint/golangci-lint_windows.BUILD new file mode 100644 index 0000000..35c8161 --- /dev/null +++ b/golangci-lint/golangci-lint_windows.BUILD @@ -0,0 +1,4 @@ +exports_files( + ["golangci-lint.exe"], + visibility = ["//visibility:public"], +) From c600bc09e8f96a04ed3fd8c0865e90bfdc655d31 Mon Sep 17 00:00:00 2001 From: danmx Date: Mon, 26 Oct 2020 10:48:55 +0100 Subject: [PATCH 2/2] fix(drone-cli): windows version Signed-off-by: danmx --- drone-cli/BUILD | 2 +- drone-cli/deps.bzl | 2 +- drone-cli/drone_windows.BUILD | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 drone-cli/drone_windows.BUILD diff --git a/drone-cli/BUILD b/drone-cli/BUILD index aa9eb79..749cc95 100644 --- a/drone-cli/BUILD +++ b/drone-cli/BUILD @@ -3,7 +3,7 @@ alias( actual = select({ "@com_github_danmx_bazel_tools//bazel/platforms:linux-x86_64": "@drone-linux-amd64//:drone", "@com_github_danmx_bazel_tools//bazel/platforms:macos-x86_64": "@drone-darwin-amd64//:drone", - "@com_github_danmx_bazel_tools//bazel/platforms:windows-x86_64": "@drone-windows-amd64//:drone", + "@com_github_danmx_bazel_tools//bazel/platforms:windows-x86_64": "@drone-windows-amd64//:drone.exe", }), visibility = ["//visibility:public"], ) diff --git a/drone-cli/deps.bzl b/drone-cli/deps.bzl index e4c9b1e..7dd04f6 100644 --- a/drone-cli/deps.bzl +++ b/drone-cli/deps.bzl @@ -17,5 +17,5 @@ def drone_cli_dependencies(): name = "drone-windows-amd64", urls = ["https://github.com/drone/drone-cli/releases/download/v1.2.2/drone_windows_amd64.tar.gz"], sha256 = "8ae9bb0b07ced2536cc8c8c0e236d1d8ae08b53387e1139a470e2cd37076a3ca", - build_file = "@com_github_danmx_bazel_tools//drone-cli:drone.BUILD", + build_file = "@com_github_danmx_bazel_tools//drone-cli:drone_windows.BUILD", ) diff --git a/drone-cli/drone_windows.BUILD b/drone-cli/drone_windows.BUILD new file mode 100644 index 0000000..371f01c --- /dev/null +++ b/drone-cli/drone_windows.BUILD @@ -0,0 +1,4 @@ +exports_files( + ["drone.exe"], + visibility = ["//visibility:public"], +)