From 4d1a4c7fb308edd900ccc539371200117ddbe1d6 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Wed, 30 Nov 2022 00:55:16 +0400 Subject: [PATCH] Fix SwiftFormat's URL/glob mishandling --- .cirrus.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3602118..bc560d9 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -28,7 +28,9 @@ task: macos_instance: image: ghcr.io/cirruslabs/macos-ventura-xcode:latest lint_script: - - swift package plugin --allow-writing-to-package-directory swiftformat --cache ignore --lint --report swiftformat.json . + # Note that we need "$(pwd)/" in "--config $(pwd)/.swiftformat" + # to work around SwiftFormat's URL/glob mishandling + - swift package plugin --allow-writing-to-package-directory swiftformat --config $(pwd)/.swiftformat --cache ignore --lint --report swiftformat.json . always: swiftformat_report_artifacts: path: swiftformat.json