Skip to content

Releases: cgrindel/rules_swift_package_manager

Release v0.3.3

20 Mar 12:59
12d0e9d
Compare
Choose a tag to compare

What's Changed

  • Update README.md for v0.3.2 by @cgrindel-app-token-generator in #270
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.14.3 by @renovate in #271
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.14.7 by @renovate in #272
  • chore(deps): update bazel_gazelle digest to a21d48b by @renovate in #273
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.14.8 by @renovate in #274
  • fix(deps): update module github.com/creasty/defaults to v1.7.0 by @renovate in #275
  • chore(deps): update bazel_gazelle digest to e12488c by @renovate in #277
  • chore: update Go deps by @cgrindel in #279
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.14.9 by @renovate in #280
  • chore(deps): update bazel_gazelle digest to 71fa620 by @renovate in #281
  • chore(deps): update bazel_gazelle digest to 71032ca by @renovate in #284
  • chore(deps): update dependency bazel to v6.1.1 by @renovate in #283
  • chore(deps): update bazel_gazelle digest to 97a754c by @renovate in #286
  • chore(deps): update dependency contrib_rules_bazel_integration_test to v0.11.1 by @renovate in #287
  • feat: generate package info in the swift_deps_index.json by @cgrindel in #288
  • feat: add support for packages JSON in Starlark code by @cgrindel in #289
  • feat: implement swift_deps bzlmod extension by @cgrindel in #290

Full Changelog: v0.3.2...v0.3.3

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "40bf17727804121e54e470e464fb9fd85d6cd3d71007139c33bf1f37675b7fad",
    urls = [
        "https://github.com/cgrindel/swift_bazel/releases/download/v0.3.3/swift_bazel.v0.3.3.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.3.2

07 Mar 20:26
c7c57b0
Compare
Choose a tag to compare

What's Changed

  • Update README.md for v0.3.1 by @cgrindel-app-token-generator in #262
  • chore: update CI to process entire matrix if a single job fails by @cgrindel in #263
  • fix(deps): update module github.com/deckarep/golang-set/v2 to v2.2.0 by @renovate in #265
  • chore: update outstanding go deps by @cgrindel in #266
  • chore(deps): update dependency bazel to v6.1.0 by @renovate in #268
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.13.1 by @renovate in #264
  • fix: fix deps and enable documentation generattion by @cgrindel in #269

Full Changelog: v0.3.1...v0.3.2

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "434cf75cbd6c3f9bd4b750a7f9c9b5bc2cc662922d24862d559abf6ecaff8b72",
    urls = [
        "https://github.com/cgrindel/swift_bazel/releases/download/v0.3.2/swift_bazel.v0.3.2.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.3.1

03 Mar 22:50
03fb442
Compare
Choose a tag to compare

What's Changed

  • Update README.md for v0.3.0 by @cgrindel-app-token-generator in #246
  • fix: filter out test targets and targets only associated with phantom products by @cgrindel in #250
  • chore: set up matrix strategy for CI by @cgrindel in #251
  • fix: remove reference to the Skylib Gazelle plugin from the README.md by @cgrindel in #253
  • chore: shard the ubuntu integration tests by @cgrindel in #254
  • chore: update GitHub actions workflow with examples test information by @cgrindel in #256
  • fix: ensure all non-header source files are included in textual_hdrs by @cgrindel in #259

Full Changelog: v0.3.0...v0.3.1

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "b609867c0b3109b6548ab41c7535cbb7368662a188cb1b9c43aeaa23771b7497",
    urls = [
        "https://github.com/cgrindel/swift_bazel/releases/download/v0.3.1/swift_bazel.v0.3.1.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.3.0

28 Feb 13:54
3081a64
Compare
Choose a tag to compare

What's Changed

  • Fix typo in header by @eliperkins in #237
  • fix: change byName resolution logic by @cgrindel in #242
  • Update README.md for v0.2.2 by @cgrindel-app-token-generator in #241
  • chore: remove swift_objc_module_alias by @cgrindel in #244
  • feat: support resources defined in SPM targets by @cgrindel in #245

New Contributors

Full Changelog: v0.2.2...v0.3.0

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "70e4d7932f1eaf8883b9dbf2ba2f360a4322374029746d9b8e989cf56f42f59d",
    urls = [
        "https://github.com/cgrindel/swift_bazel/releases/download/v0.3.0/swift_bazel.v0.3.0.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.2.2

24 Feb 15:12
64c3a96
Compare
Choose a tag to compare

What's Changed

  • fix: wrap go_repository declarations with maybe by @cgrindel in #222
  • chore(deps): update dependency contrib_rules_bazel_integration_test to v0.10.2 by @renovate in #227
  • Update README.md for v0.2.1 by @cgrindel-app-token-generator in #221
  • fix: differentiate between GUI applications and command-line applications in Gazelle extension by @cgrindel in #225
  • fix: exclude test-only SPM targets when generating Bazel targets by @cgrindel in #232
  • chore(deps): update dependency contrib_rules_bazel_integration_test to v0.10.3 by @renovate in #228
  • update v0.2.1 Readme by @yume190 in #226
  • feat: introduce generate_modulemap to support @import in Objective-C modules by @cgrindel in #233
  • chore: support resolving modules to multiple labels by @cgrindel in #234
  • fix(deps): update module gopkg.in/yaml.v2 to v3 by @renovate in #213
  • chore(deps): update dependency build_bazel_rules_swift to v1.6.0 by @renovate in #236
  • feat: support @import of modules in Objective-C code by @cgrindel in #238
  • chore: remove obsolete pkginfo_targets.objc_label_name by @cgrindel in #239
  • chore: refactor deps_indexes separating module resolution from label resolution by @cgrindel in #240

New Contributors

Full Changelog: v0.2.1...v0.2.2

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "69b0fe7f6120420a5c56aa90629f7abce8ab0f6fd53541e2cea97ad687ba19a2",
    urls = [
        "https://github.com/cgrindel/swift_bazel/releases/download/v0.2.2/swift_bazel.v0.2.2.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.2.1

13 Feb 16:02
80e9d38
Compare
Choose a tag to compare

What's Changed

  • Update README.md for v0.2.0 by @cgrindel-app-token-generator in #151
  • chore(deps): update bazel_gazelle digest to 7b7d98b by @renovate in #149
  • chore(deps): update bazel_gazelle digest to 043368a by @renovate in #156
  • feat: begin support for firebase-ios-sdk by @cgrindel in #158
  • feat: support exclude paths in Swift targets by @cgrindel in #159
  • chore(deps): update bazel_gazelle digest to cff23b0 by @renovate in #160
  • fix: implement fixes from firebase example implementation by @cgrindel in #161
  • feat: detect all Bazel header file types and other fixes by @cgrindel in #162
  • fix: ensure repository rules merge and prune properly by @cgrindel in #163
  • fix: remove inappropriate inclusion of public header directories by @cgrindel in #167
  • chore(deps): update bazel_gazelle digest to 8dfc8da by @renovate in #168
  • feat: add workaround for ObjC modules used by objc_library targets by @cgrindel in #169
  • chore(deps): update dependency build_bazel_rules_swift to v1.5.1 by @renovate in #170
  • fix(deps): update golang.org/x/exp digest to a68e582 by @renovate in #141
  • chore: refactor build settings to support conditions by @cgrindel in #174
  • feat: support expressions and operators in Starlark code generation by @cgrindel in #176
  • chore(deps): update bazel_gazelle digest to 91dcc6c by @renovate in #178
  • feat: define configuration settings to support SPM conditions by @cgrindel in #179
  • chore(deps): update bazel_gazelle digest to 2224160 by @renovate in #180
  • feat: start generating select() expressions by @cgrindel in #183
  • feat: finish adding conditional build setting support by @cgrindel in #185
  • chore: add unit tests for additional Swift target/product use cases by @cgrindel in #186
  • chore: add clang build file generation tests by @cgrindel in #187
  • chore(deps): update bazel_gazelle digest to 350e975 by @renovate in #188
  • feat: support conditions on target dependencies by @cgrindel in #189
  • chore(deps): update dependency io_bazel_rules_go to v0.38.1 by @renovate in #171
  • chore(deps): update dependency bazel_skylib to v1.4.0 by @renovate in #184
  • chore(deps): update cgrindel/gha_create_release action to v2 by @renovate in #190
  • chore: upgrade to bazel-starlib 0.12.0 and fix new bzlformat errors by @cgrindel in #192
  • fix: ensure bzl_selects.to_starlark collects condition values by @cgrindel in #193
  • feat: resolve Swift imports to Bazel targets via Swift package products by @cgrindel in #197
  • chore: add firebase_example with analytics example app by @cgrindel in #198
  • chore: remove code to generate rules from manifest from Gazelle extension by @cgrindel in #200
  • chore: upgrade bazel-starlib to 0.12.1 by @cgrindel in #207
  • chore: generate lists of the builtin Apple frameworks/modules by @cgrindel in #205
  • chore(deps): update dependency bazel_skylib_gazelle_plugin to v1.4.1 by @renovate in #211
  • chore(deps): update dependency bazel_skylib to v1.4.1 by @renovate in #210
  • chore: add firebase examples: abtesting, analytics, appdistribution by @cgrindel in #209
  • feat: add resolution logger to Gazelle extension by @cgrindel in #212
  • fix: update firebase example with correct deps by @cgrindel in #214
  • chore(deps): update dependency contrib_rules_bazel_integration_test to v0.10.1 by @renovate in #216
  • chore: build release source archive by @cgrindel in #218
  • fix: fix release archive name by @cgrindel in #220

Full Changelog: v0.2.0...v0.2.1

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "2bcbe2947649f6433bf97258401c387eb41153c8adc378f84295628d879092d2",
    urls = [
        "https://github.com/cgrindel/swift_bazel/releases/download/v0.2.1/swift_bazel.v0.2.1.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.2.0

13 Jan 20:34
f044de3
Compare
Choose a tag to compare

What's Changed

  • Update README.md for v0.1.0 by @cgrindel-app-token-generator in #132
  • chore(deps): update bazel_gazelle digest to 980c753 by @renovate in #134
  • chore(deps): update actions/checkout action to v3 by @renovate in #131
  • fix(deps): update github.com/bazelbuild/buildtools digest to 06e8e24 by @renovate in #114
  • chore: use slices package and convert to table driven tests by @cgrindel in #140
  • fix: correct the link to repository rules doc by @cgrindel in #142
  • feat: introduce swift_update_packages macro by @cgrindel in #144
  • feat: support storing Swift dependency files in a sub-package by @cgrindel in #146
  • chore: add nogo code analysis checks by @cgrindel in #147
  • chore(deps): update bazel_gazelle digest to 6365599 by @renovate in #145
  • chore: add Go documentation comments by @cgrindel in #150

Full Changelog: v0.1.0...v0.2.0

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "fd77181e45fbb9ab6ddedf59f3f2d4cf0c173919a6de8d4a398d99fd965d5ce5",
    strip_prefix = "swift_bazel-0.2.0",
    urls = [
        "http://github.com/cgrindel/swift_bazel/archive/v0.2.0.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.1.0

10 Jan 23:07
8a30176
Compare
Choose a tag to compare

What's Changed

  • Update README.md for v0.0.2 by @cgrindel-app-token-generator in #129
  • chore: prepare for initial release by @cgrindel in #130

New Contributors

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

Full Changelog: v0.0.2...v0.1.0

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "de685bdb06ffb4ddb558d810d56d99a6e0fed44bd770a422e41dcea4fc3f6c2d",
    strip_prefix = "swift_bazel-0.1.0",
    urls = [
        "http://github.com/cgrindel/swift_bazel/archive/v0.1.0.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.0.2

10 Jan 19:22
cee095e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.1...v0.0.2

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "ebeaa6761c2d603aa0c5f454d0423ada38dd1c586681ce7be1fb00de8b7d4997",
    strip_prefix = "swift_bazel-0.0.2",
    urls = [
        "http://github.com/cgrindel/swift_bazel/archive/v0.0.2.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

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

bazel_starlib_dependencies()

# MARK: - Gazelle

# gazelle:repo bazel_gazelle

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@cgrindel_swift_bazel//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

# Declare Go dependencies before calling go_rules_dependencies.
swift_bazel_go_dependencies()

go_rules_dependencies()

go_register_toolchains(version = "1.19.1")

gazelle_dependencies()

# MARK: - Swift Toolchain

http_archive(
    name = "build_bazel_rules_swift",
    # Populate with your preferred release 
    # https://github.com/bazelbuild/rules_swift/releases
)

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

# gazelle:repository_macro swift_deps.bzl%swift_dependencies
swift_dependencies()

swift_rules_dependencies()

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

swift_rules_extra_dependencies()

Release v0.0.1

10 Jan 19:13
e0f5024
Compare
Choose a tag to compare

What's Changed

  • feat: initial implementation for Swift Gazelle plugin by @cgrindel in #1
  • Configure Renovate by @renovate in #2
  • chore: initial CI implementation by @cgrindel in #13
  • fix(deps): update golang.org/x/exp digest to 8509921 by @renovate in #4
  • chore(deps): update contrib_rules_bazel_integration_test digest to e244184 by @renovate in #15
  • chore(deps): update contrib_rules_bazel_integration_test digest to d76e997 by @renovate in #16
  • chore(deps): update contrib_rules_bazel_integration_test digest to 33f3d3c by @renovate in #18
  • feat: parse output of swift package dump-package by @cgrindel in #19
  • fix: add missing filegroup declarations for Bazel integration tests by @cgrindel in #20
  • feat: retrieve package dump JSON and generate swiftpkg.PackageInfo by @cgrindel in #22
  • fix: merge issue by @cgrindel in #23
  • chore(deps): update dependency io_bazel_rules_go to v0.36.0 by @renovate in #25
  • feat: retrieve package description and incorporate into swiftpkg.PackageInfo by @cgrindel in #24
  • chore: use gha_join_jobs for all_ci_tests by @cgrindel in #28
  • chore: upgrade bazel-starlib and use bzltidy by @cgrindel in #27
  • fix(deps): update golang.org/x/exp digest to 6ab00d0 by @renovate in #29
  • feat: generate Bazel build files from Swift package manifest by @cgrindel in #30
  • feat: parse v1 and v2 Package.resolved files by @cgrindel in #34
  • chore(deps): update bazel_gazelle digest to eed5a38 by @renovate in #31
  • feat: parse resolve package JSON and return pins by @cgrindel in #35
  • fix: increase generatio test timeouts to 30 seconds for CI by @cgrindel in #36
  • feat: add models to represent Swift package info by @cgrindel in #37
  • chore: update rules_bazel_integration_test to 0.9.0 by @cgrindel in #40
  • fix(deps): update golang.org/x/exp digest to 6dcec33 by @renovate in #38
  • fix(deps): update golang.org/x/exp digest to 47842c8 by @renovate in #41
  • chore(deps): update bazel_gazelle digest to 5e06b94 by @renovate in #43
  • chore(deps): update dependency io_bazel_rules_go to v0.37.0 by @renovate in #42
  • feat: add support for Swift old-style packages to swift_package by @cgrindel in #44
  • feat: enable integration tests for pkg_manifest example by @cgrindel in #48
  • chore(swift_package): ensure executable targets create a single swift_binary by @cgrindel in #49
  • chore: rename simple example to http_archive_ext_deps by @cgrindel in #55
  • chore: increase timeout to 300 seconds for Swift package generation tests by @cgrindel in #56
  • fix(deps): update golang.org/x/exp digest to 4296e2f by @renovate in #45
  • fix(deps): update golang.org/x/exp digest to ad323de by @renovate in #57
  • fix(deps): update golang.org/x/exp digest to fae10dd by @renovate in #58
  • feat: specify external deps using minimal Swift package manifest by @cgrindel in #60
  • chore: migrate to swiftpkg models by @cgrindel in #63
  • chore: remove gen_from_pkg_manifest flag by @cgrindel in #64
  • fix(deps): update github.com/bazelbuild/buildtools digest to 762712d by @renovate in #62
  • chore(deps): update dependency bazel to v5.4.0 by @renovate in #68
  • chore(deps): update dependency cgrindel_bazel_starlib to v0.10.3 by @renovate in #47
  • feat: introduce module index to resolve module name to Bazel labels by @cgrindel in #71
  • chore: add clean test for each example workspace by @cgrindel in #72
  • feat: add support for target references and plugin targets by @cgrindel in #78
  • chore(deps): update bazel_gazelle digest to 8adf04f by @renovate in #73
  • fix(deps): update golang.org/x/exp digest to 0915cd7 by @renovate in #67
  • fix: ensure deps are properly updated if a dependency disappears from the target by @cgrindel in #80
  • chore: create a single Bazel build file for each external Swift package by @cgrindel in #82
  • chore(deps): update dependency bazel to v6 by @renovate in #83
  • feat: introduce local_swift_package by @cgrindel in #85
  • chore: add example of Swift executable product pre-5.4 by @cgrindel in #86
  • feat: index http_archive with build_file in a separate file by @cgrindel in #87
  • chore: rename TargetName to Name in ByNameReference by @cgrindel in #88
  • fix: generate repository rule declarations for direct and transitive dependencies by @cgrindel in #90
  • chore: address issues getting vapor_example working by @cgrindel in #92
  • chore(deps): update dependency contrib_rules_bazel_integration_test to v0.10.0 by @renovate in #93
  • feat: enable vapor_example integration test by @cgrindel in #94
  • fix: check for main.swift when finding identifying binary targets by @cgrindel in #96
  • chore: update Bazel versions by @cgrindel in #98
  • chore(deps): update bazel_gazelle digest to 18531e3 by @renovate in #100
  • chore: upgrade rules_swift to 1.5 by @cgrindel in #97
  • chore: add README.md, faq.md, and high-level.md by @cgrindel in #106
  • chore: generate Starlark documentation by @cgrindel in #108
  • chore(deps): update bazel_gazelle digest to 76a0602 by @renovate in #109
  • chore: add some doc comments to Go code by @cgrindel in #111
  • fix(deps): update github.com/bazelbuild/buildtools digest to 669c492 by @renovate in #110
  • feat: add ios_sim example and respect existing Swift rule names by @cgrindel in #112
  • chore(deps): update bazel_gazelle digest to 12f62e2 by @renovate in #113
  • feat: support publicHeadersPath and headerSearchPath in Swift packages with clang targets by @cgrindel in #116
  • chore: reduce the number of integration test permutations by @cgrindel in #118
  • feat: add support for Object-C code in packages by @cgrindel in #119
  • chore(deps): update bazel_gazelle digest to 170b3db by @renovate in #117
  • chore(deps): update bazel_gazelle digest to 399f2bd by @renovate in #120
  • chore: port xcmetrics example from rules_spm by @cgrindel in #121
  • chore: port interesting_deps example from rules_spm by @cgrindel in #122
  • feat: add release process by @cgrindel in #125

New Contributors

Full Changelog: https://github.com/cgrindel/swift_bazel/commits/v0.0.1

Workspace Snippet

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "cgrindel_swift_bazel",
    sha256 = "095f4023b6508ec026bd35786fecea79afcafd25dd89e21171f3d46ee8f08353",
    strip_prefix = "swift_bazel-0.0.1",
    urls = [
        "http://github.com/cgrindel/swift_bazel/archive/v0.0.1.tar.gz",
    ],
)

load("@cgrindel_swift_bazel//:deps.bzl", "swift_bazel_dependencies"...
Read more