-
Notifications
You must be signed in to change notification settings - Fork 32
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
generate_swift_deps_for_workspace = False
still requires a swift_deps.bzl
file
#686
Labels
bug
Something isn't working
Comments
You want to set generate_swift_deps_for_workspace to |
Sorry. I missed that you had that attribute specified. 👀 |
I ran across this previously. I updated gazelle so that the |
I can take a look at this |
luispadron
changed the title
Using with bzlmod only still requires an empty
Oct 30, 2023
deps.bzl
filegenerate_swift_deps_for_workspace == False
still requires a swift_deps.bzl
file
luispadron
changed the title
Oct 30, 2023
generate_swift_deps_for_workspace == False
still requires a swift_deps.bzl
filegenerate_swift_deps_for_workspace = False
still requires a swift_deps.bzl
file
cgrindel
pushed a commit
that referenced
this issue
Oct 30, 2023
Fixes #686 In `swift_update_packages.bzl` we need to detect if `bzlmod` is enabled to forward the `-bzlmod` flag to the gazelle generator. This should stop gazelle from requiring a `swift_deps.bzl` file when bzlmod is enabled and `generate_swift_deps_for_workspace == False` Signed-off-by: Luis Padron <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given this setup:
When I run the update packages command in Bzlmod without a
ThirdParty/SPM/swift_packages.bzl
, I get this error:gazelle: loading WORKSPACE file: failed to load /Users/lpadron/Development/cash-ios/ThirdParty/SPM/swift_packages.bzl in repoRoot /Users/lpadron/Development/cash-ios: open /Users/lpadron/Development/cash-ios/ThirdParty/SPM/swift_packages.bzl: no such file or directory
If I add an empty file the update works and the file remains empty.
Should the expected behavior be that this file is no longer required and thus can be deleted? If so, we should fix this such that we dont try to write to this file if
generate_swift_deps_for_workspace == False
The text was updated successfully, but these errors were encountered: