rules_swift_package_manager icon indicating copy to clipboard operation
rules_swift_package_manager copied to clipboard

Road to 1.0.0

Open cgrindel opened this issue 6 months ago • 7 comments

Goals

  1. Remove need for Swift index JSON file.
  2. Move Gazelle plugin to its own repository.
  3. Create release 1.0.0.

Tasks

  • [x] Process SPM Package.swift and Package.resolved in the repository rule.
    • [x] Stop reading the index file in the repository rules.
    • [x] Be sure to return the correct repository info so that mod tidy will update the MODULE.bazel file with the correct use_repos declaration.
    • [x] Remove all of the index files in the examples.
    • [x] Remove all of the swift_deps START and swift_deps END comments.
    • [x] Update bzlmod/workspace to use from_package().
  • [x] Update the Gazelle plugin to not use the Swift index JSON file.
  • [x] ~~Update //:swift_update_pkgs to just run SPM commands without using Go. Be sure to use the Swift toolchain, not the Swift installed on the system. (Possibly, create a new macro that creates the commands for running Swift package commands.)~~ For now, I removed swift_update_packages. If people would like a way to update Swift packages using Bazel, we will do it as a separate feature.
  • [x] Fix examples
    • [x] grpc_package_example
    • [x] symlink_example
    • [x] ios_sim
  • [ ] Move Gazelle plugin to its own repository.
    • [ ] Create a repository for the Gazelle plugin.
    • [ ] Publish to BCR.
    • [ ] Remove Gazelle plugin from rules_swift_package_manager.
  • [ ] #1079
  • [x] #1168
  • [ ] Create release 1.0.0.

cgrindel avatar Feb 17 '24 20:02 cgrindel