Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify when to enable declare_swift_deps_info #1185

Merged
merged 6 commits into from
Jul 30, 2024

Conversation

cgrindel
Copy link
Owner

@cgrindel cgrindel commented Jul 29, 2024

Clarify when the declare_swift_deps_info attribute should be enabled for workspaces that use rules_swift_package_manager.

Closes #1176.

@cgrindel cgrindel self-assigned this Jul 29, 2024
@cgrindel
Copy link
Owner Author

cc: @omarzl

@cgrindel cgrindel mentioned this pull request Jul 29, 2024
@cgrindel cgrindel enabled auto-merge (squash) July 30, 2024 14:21
@cgrindel cgrindel merged commit 34b0098 into main Jul 30, 2024
32 checks passed
@cgrindel cgrindel deleted the clarify_readme_and_swift_deps_info branch July 30, 2024 15:10
renovate bot referenced this pull request in bazel-contrib/rules_bazel_integration_test Jul 31, 2024
…#347)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| rules_swift_package_manager | bazel_dep | minor | `0.35.1` -> `0.36.0`
|
|
[rules_swift_package_manager](https://github.com/cgrindel/rules_swift_package_manager)
| http_archive | minor | `v0.35.1` -> `v0.36.0` |

---

### Release Notes

<details>
<summary>cgrindel/rules_swift_package_manager
(rules_swift_package_manager)</summary>

###
[`v0.36.0`](https://github.com/cgrindel/rules_swift_package_manager/releases/tag/v0.36.0)

[Compare
Source](https://github.com/cgrindel/rules_swift_package_manager/compare/v0.35.1...v0.36.0)

#### What Has Changed

#### What's Changed

- chore: update README.md for v0.35.1 by
[@&#8203;cgrindel-app-token-generator](https://github.com/cgrindel-app-token-generator)
in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1164](https://github.com/cgrindel/rules_swift_package_manager/pull/1164)
- chore(deps): update dependency airbnb/lottie-spm to from: "4.5.0" by
[@&#8203;cgrindel-self-hosted-renovate](https://github.com/cgrindel-self-hosted-renovate)
in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1159](https://github.com/cgrindel/rules_swift_package_manager/pull/1159)
- chore(deps): update dependency nicklockwood/swiftformat to from:
"0.54.1" by
[@&#8203;cgrindel-self-hosted-renovate](https://github.com/cgrindel-self-hosted-renovate)
in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1165](https://github.com/cgrindel/rules_swift_package_manager/pull/1165)
- docs: document how to handle deprecated byName references by
[@&#8203;cgrindel](https://github.com/cgrindel) in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1146](https://github.com/cgrindel/rules_swift_package_manager/pull/1146)
- docs: update patch instructions for bzlmod by
[@&#8203;cgrindel](https://github.com/cgrindel) in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1167](https://github.com/cgrindel/rules_swift_package_manager/pull/1167)
- chore(deps): update dependency apple_support to v1.16.0 by
[@&#8203;cgrindel-self-hosted-renovate](https://github.com/cgrindel-self-hosted-renovate)
in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1160](https://github.com/cgrindel/rules_swift_package_manager/pull/1160)
- docs: generate bzlmod extension docs by
[@&#8203;cgrindel](https://github.com/cgrindel) in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1169](https://github.com/cgrindel/rules_swift_package_manager/pull/1169)
- chore(deps): update dependency vapor/fluent-sqlite-driver to v4.7.4 by
[@&#8203;cgrindel-self-hosted-renovate](https://github.com/cgrindel-self-hosted-renovate)
in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1171](https://github.com/cgrindel/rules_swift_package_manager/pull/1171)
- chore: remove legacy code and docs by
[@&#8203;cgrindel](https://github.com/cgrindel) in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1179](https://github.com/cgrindel/rules_swift_package_manager/pull/1179)
- fix: Update bundle name generator to match SPM by
[@&#8203;jflan-dd](https://github.com/jflan-dd) in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1183](https://github.com/cgrindel/rules_swift_package_manager/pull/1183)
- docs: clarify when to enable `declare_swift_deps_info` by
[@&#8203;cgrindel](https://github.com/cgrindel) in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1185](https://github.com/cgrindel/rules_swift_package_manager/pull/1185)
- chore: refactor resource accessors for Swift and ObjC by
[@&#8203;cgrindel](https://github.com/cgrindel) in
[https://github.com/cgrindel/rules_swift_package_manager/pull/1184](https://github.com/cgrindel/rules_swift_package_manager/pull/1184)

**Full Changelog**:
cgrindel/rules_swift_package_manager@v0.35.1...v0.36.0

#### Bazel Module Snippet

```python
bazel_dep(name = "rules_swift_package_manager", version = "0.36.0")
```

#### Workspace Snippet

```python
load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "rules_swift_package_manager",
    sha256 = "902bdcfd77e2037f889443024087784b49aac42581b07a6b80442177ae2f806d",
    urls = [
        "https://github.com/cgrindel/rules_swift_package_manager/releases/download/v0.36.0/rules_swift_package_manager.v0.36.0.tar.gz",
    ],
)

load("@&#8203;rules_swift_package_manager//:deps.bzl", "swift_bazel_dependencies")

swift_bazel_dependencies()

load("@&#8203;cgrindel_bazel_starlib//:deps.bzl", "bazel_starlib_dependencies")

bazel_starlib_dependencies()

### MARK: - Gazelle
### gazelle:repo bazel_gazelle

load("@&#8203;bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@&#8203;rules_swift_package_manager//:go_deps.bzl", "swift_bazel_go_dependencies")
load("@&#8203;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.21.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(
    "@&#8203;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(
    "@&#8203;build_bazel_rules_swift//swift:extras.bzl",
    "swift_rules_extra_dependencies",
)

swift_rules_extra_dependencies()
```

</details>

---

### 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.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/bazel-contrib/rules_bazel_integration_test).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants