cgrindel / rules_swift_package_manager

Collection of utilities and Bazel rules to aid in the development and maintenance of Swift repositories using Bazel.
Apache License 2.0
68 stars 22 forks source link

chore(deps): update dependency nicklockwood/swiftformat to from: "0.54.0" #1134

Closed cgrindel-self-hosted-renovate[bot] closed 1 day ago

cgrindel-self-hosted-renovate[bot] commented 2 days ago

This PR contains the following updates:

Package Update Change
nicklockwood/SwiftFormat minor from: "0.53.10" -> from: "0.54.0"

Release Notes

nicklockwood/SwiftFormat (nicklockwood/SwiftFormat) ### [`v0.54.0`](https://togithub.com/nicklockwood/SwiftFormat/blob/HEAD/CHANGELOG.md#0540-2024-06-11) [Compare Source](https://togithub.com/nicklockwood/SwiftFormat/compare/0.53.10...0.54.0) - Added `blankLineAfterSwitchCase` rule for inserting blank lines after switch cases - Added `consistentSwitchCaseSpacing` rule for ensuring consistent spacing between switch cases - Added `redundantProperty` rule for removing variable assignments where value is immediately returned - Added `redundantTypedThrows` rule for stripping redundant `Never` or `any Error` `throws` types - Setting `--report` without `--reporter` type now raises an error if type can't be inferred - Added XML reporter for Checkstyle-compatible lint reporting (use the `--reporter xml` option) - Added `--typedelimiter` option for controlling spacing around the colon in type definitions - Added `--initcodernil` option for returning `nil` instead of asserting in unavailable `init?(coder:)` - The `fileHeader` rule now uses git info for `created` date (if available) instead of file system - Added git `author`, `author.name` and `author.email` tokens for file header templates - Added `--callsiteparen` option for controlling closing paren placement at function call sites - The `wrapAttributes` rule can now be applied differently to computed properties vs stored properties - The `wrapAttributes` rule can now be applied differently to complex (parameterized) vs simple attributes - Replaced `--varattributes` with `--storedvarattrs`, `--computedvarattrs` and `--complexattrs` options - Added `—-nilinit` option for controlling whether `redundantNilInit` adds or removes explicit `nil` - Added ability to organize declarations by type over visibility (use `--organizationmode type`) - Fixed bug where enabling `organizeDeclarations` for structs caused `sortDeclarations` to have no effect - Fixed bug where if statement body could be incorrectly parsed as a trailing closure - Improved attribute handling in `opaqueGenericParameters rule` - SwiftFormat now recognizes `init` and `_modify` property accessors - Fixed bug with `preferForLoop` rule and tuple argument matching - Extended `conditionalAssignment` rule to handle more cases - Added `--condassignment after-property` option - Fixed await being hoisted outside of macro arguments - Fixed unsafe adding/removal of `self` within macros - Added `os_log` to `--selfrequired` defaults

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

â™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by Renovate Bot.

cgrindel-self-hosted-renovate[bot] commented 2 days ago

âš  Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

â™» Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: undefined
Command failed: ./do_renovate_post_upgrade
WARNING: Option 'experimental_remote_build_event_upload' is deprecated: Use --remote_build_event_upload instead
Computing main repo mapping: 
WARNING: Option 'experimental_remote_build_event_upload' is deprecated: Use --remote_build_event_upload instead
Loading: 
Loading: 0 packages loaded
WARNING: Build option --action_env has changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed).
Analyzing: target //:tidy_modified (0 packages loaded, 0 targets configured)
Analyzing: target //:tidy_modified (0 packages loaded, 0 targets configured)
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
INFO: Analyzed target //:tidy_modified (50 packages loaded, 579 targets configured).
INFO: Found 1 target...
Target //:tidy_modified up-to-date:
  bazel-bin/tidy_modified
INFO: Elapsed time: 0.542s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/tidy_modified --mode modified --tidy_target //:tidy
WARNING: Option 'experimental_remote_build_event_upload' is deprecated: Use --remote_build_event_upload instead
Computing main repo mapping: 
WARNING: Option 'experimental_remote_build_event_upload' is deprecated: Use --remote_build_event_upload instead
Loading: 
Loading: 1 packages loaded
Analyzing: target //:tidy (1 packages loaded, 0 targets configured)
Analyzing: target //:tidy (1 packages loaded, 0 targets configured)
[0 / 1] checking cached actions
Analyzing: target //:tidy (56 packages loaded, 550 targets configured)
[1 / 1] checking cached actions
INFO: Analyzed target //:tidy (61 packages loaded, 577 targets configured).
INFO: Found 1 target...
Target //:tidy up-to-date:
  /home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/execroot/_main/bazel-out/k8-fastbuild/bin/tidy
INFO: Elapsed time: 2.666s, Critical Path: 0.04s
INFO: 5 processes: 5 internal.
INFO: Build completed successfully, 5 total actions
INFO: Running command line: /home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/execroot/_main/bazel-out/k8-fastbuild/bin/tidy :update_build_files
WARNING: Option 'experimental_remote_build_event_upload' is deprecated: Use --remote_build_event_upload instead
Computing main repo mapping: 
WARNING: Option 'experimental_remote_build_event_upload' is deprecated: Use --remote_build_event_upload instead
Loading: 
Loading: 0 packages loaded
Analyzing: target //:update_build_files (0 packages loaded, 0 targets configured)
Analyzing: target //:update_build_files (0 packages loaded, 0 targets configured)
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
Analyzing: target //:update_build_files (43 packages loaded, 1183 targets configured)
[1 / 1] checking cached actions
ERROR: Traceback (most recent call last):
    File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/external/rules_swift_package_manager~/swiftpkg/bzlmod/swift_deps.bzl", line 184, column 43, in _swift_deps_impl
        _declare_pkgs_from_package(
    File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/external/rules_swift_package_manager~/swiftpkg/bzlmod/swift_deps.bzl", line 97, column 40, in _declare_pkgs_from_package
        dep_pkg_info = pkginfos.get(
    File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/external/rules_swift_package_manager~/swiftpkg/internal/pkginfos.bzl", line 117, column 39, in _get
        dump_manifest = _get_dump_manifest(
    File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/external/rules_swift_package_manager~/swiftpkg/internal/pkginfos.bzl", line 49, column 57, in _get_dump_manifest
        return repository_utils.parsed_json_from_spm_command(
    File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/external/rules_swift_package_manager~/swiftpkg/internal/repository_utils.bzl", line 82, column 49, in _parsed_json_from_spm_command
        json_str = repository_utils.exec_spm_command(
    File "/home/ubuntu/.cache/bazel/_bazel_ubuntu/3a059290653385b46a71d02f443c5ae6/external/rules_swift_package_manager~/swiftpkg/internal/repository_utils.bzl", line 69, column 39, in _execute_spm_command
        repo_name = repository_ctx.attr.name,
Error: 'module_ctx' value has no field or method 'attr'
Analyzing: target //:update_build_files (43 packages loaded, 1183 targets configured)
[1 / 1] checking cached actions
ERROR: Analysis of target '//:update_build_files' failed; build aborted: error evaluating module extension swift_deps in @@rules_swift_package_manager~//:extensions.bzl
INFO: Elapsed time: 3.185s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED: 
ERROR: Build failed. Not running target