Skip to content

Releases: cgrindel/rules_swiftformat

Release v0.4.1

05 May 13:43
f7c6f29
Compare
Choose a tag to compare

What's Changed

  • Update REAMDE.md for v0.4.0 by @cgrindel-app-token-generator in #44
  • Fixed build badge. by @cgrindel in #45
  • Upgrade to Bazel 5.0.0. by @cgrindel in #46
  • Upgraded to rules_bazel_integration_test 0.5.0. by @cgrindel in #47
  • Removed obsolete test in CI workflow. by @cgrindel in #48
  • Add Ubuntu test runner by @cgrindel in #49
  • Added scheduled builds and updated build badge to point to it. by @cgrindel in #50
  • Updated workflow name to Continuous Integration. by @cgrindel in #51
  • Migrate to use defs.bzl instead of swiftformat.bzl. by @cgrindel in #52
  • Upgraded bazel-starlib to 0.6.0 and addressed a number of lint issues. by @cgrindel in #53
  • Upgrade rules_bazel_integration_test to use bazel-contrib release. by @cgrindel in #55
  • Upgrade dependencies by @cgrindel in #56

New Contributors

  • @cgrindel-app-token-generator made their first contribution in #44

Full Changelog: v0.4.0...v0.4.1

Workspace Snippet

# Download and configure rules_swiftformat.

http_archive(
    name = "cgrindel_rules_swiftformat",
    sha256 = "f496774f56e8260e277dc17366cf670b55dee3616327a13d2d04bd1b62cdcc88",
    strip_prefix = "rules_swiftformat-0.4.1",
    urls = [
        "http://github.com/cgrindel/rules_swiftformat/archive/v0.4.1.tar.gz",
    ],
)

load("@cgrindel_rules_swiftformat//swiftformat:deps.bzl", "swiftformat_rules_dependencies")

swiftformat_rules_dependencies()

# Configure the dependencies for rules_swiftformat

load(
    "@cgrindel_bazel_starlib//:deps.bzl",
    "bazel_starlib_dependencies",
)

bazel_starlib_dependencies()

load(
    "@cgrindel_rules_spm//spm:deps.bzl",
    "spm_rules_dependencies",
)

spm_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()

# We are using rules_spm to download and build SwiftFormat. The following will configure
# rules_spm to do that.

load("@cgrindel_rules_swiftformat//swiftformat:load_package.bzl", "swiftformat_load_package")

swiftformat_load_package()

Release v0.4.0

12 Jan 23:02
d5dc620
Compare
Choose a tag to compare

What's Changed

  • Updated with release 0.3.0 information. by @cgrindel in #24
  • Add rules_bzlformat by @cgrindel in #27
  • Migrate to rules_bazel_integration_test by @cgrindel in #31
  • Update rules_bazel_integration_test to release 0.3.0. by @cgrindel in #33
  • Finished converting change_update_all_test to use bazel_integration_test by @cgrindel in #35
  • Update rules_bzlformat to 0.2.1. by @cgrindel in #38
  • Migrate from rules_bzlformat, rules_updatesrc, and bazel_shlib to bazel-starlib by @cgrindel in #40
  • Update references from swiftformat_update to updatesrc_update. by @cgrindel in #41
  • Allow a client to select the release/version for SwiftFormat by @cgrindel in #42
  • Implemented release workflow using bzlrelease. by @cgrindel in #43

Full Changelog: v0.3.0...v0.4.0

Workspace Snippet

# Download and configure rules_swiftformat.

http_archive(
    name = "cgrindel_rules_swiftformat",
    sha256 = "d54f3ef6c027e49f45c49e8c287cecfb8b7dd87309a17ad6ec9684f09970436a",
    strip_prefix = "rules_swiftformat-0.4.0",
    urls = [
        "http://github.com/cgrindel/rules_swiftformat/archive/v0.4.0.tar.gz",
    ],
)

load("@cgrindel_rules_swiftformat//swiftformat:deps.bzl", "swiftformat_rules_dependencies")

swiftformat_rules_dependencies()

# Configure the dependencies for rules_swiftformat

load(
    "@cgrindel_bazel_starlib//:deps.bzl",
    "bazel_starlib_dependencies",
)

bazel_starlib_dependencies()

load(
    "@cgrindel_rules_spm//spm:deps.bzl",
    "spm_rules_dependencies",
)

spm_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:repositories.bzl",
    "swift_rules_dependencies",
)

swift_rules_dependencies()

load(
    "@build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()

# We are using rules_spm to download and build SwiftFormat. The following will configure
# rules_spm to do that.

load("@cgrindel_rules_swiftformat//swiftformat:load_package.bzl", "swiftformat_load_package")

swiftformat_load_package()

Release 0.3.0

26 Oct 18:59
3f79347
Compare
Choose a tag to compare
  • Replaced swiftformat_update and swiftformat_update_all with updatesrc_update and updatesrc_update_all from rules_updatesrc.

Release 0.2.1

22 Oct 00:06
d5254f8
Compare
Choose a tag to compare

This is a minor update that clarifies how labels are handled by swiftformat_pkg. In short, labels are ignored for formatting.

Release 0.2.0

21 Oct 19:12
6e4e959
Compare
Choose a tag to compare

This release contains:

  • Added swiftformat_exclude to swiftformat_library, swiftformat_binary, and swiftformat_test. This allows a Swift file to be included for the build, but not formatted. This is useful for Swift source files that cause SwiftFormat to hang or take a long time to process.
  • Added missing logic for handling if srcs was not specified for swiftformat_library, swiftformat_binary, or swiftformat_test.
  • Added exclude_files example which demonstrates the use of the swiftformat_exclude attribute.
  • Fixed typo in rules_swift_helpers example.
  • Fixed issue where the name for the formatting targets was not unique.

Release 0.1.0

14 Oct 23:12
80a2745
Compare
Choose a tag to compare

Initial release.