Skip to content

Commit d70752b

Browse files
authored
feat(dart): add pub.dev publishing support (#527)
- Remove `publish_to: none` from dart/dotprompt/pubspec.yaml to allow publishing to pub.dev. - Add `dart_pub_publish` and `dart_pub_get` targets to both dart/dotprompt/BUILD.bazel and dart/handlebarrz/BUILD.bazel. - Enhance Gazelle extension to auto-generate `dart_pub_get` and `dart_pub_publish` targets when a pubspec.yaml is found. - `dart_pub_get` is always generated (dependency resolution). - `dart_pub_publish` is only generated when `publish_to` is not set to `none` (checked via new [IsPublishable()](cci:1://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:27:0-31:1) method on the [Pubspec](cci:2://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:19:0-25:1) struct). - Add `PublishTo` field to [Pubspec](cci:2://file:///Users/yesudeep/code/github.com/google/dotprompt/bazel/rules_dart/gazelle/pubspec/types.go:19:0-25:1) struct in gazelle/pubspec/types.go. - Add go.work with all 4 Go modules for local development. - Update all go.mod files to go 1.25 and go.work to go 1.26 (support the two most recent Go releases).
1 parent 5c0ea0a commit d70752b

File tree

17 files changed

+247
-500
lines changed

17 files changed

+247
-500
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
if: needs.check-paths.outputs.any_changed == 'true'
134134
strategy:
135135
matrix:
136-
go-version: ["1.24.x", "1.25.x"]
136+
go-version: ["1.25.x", "1.26.x"]
137137
fail-fast: false
138138

139139
name: Go ${{ matrix.go-version }} Tests

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
with:
5555
go-version: stable
5656
- name: golangci-lint
57-
uses: golangci/golangci-lint-action@v6
57+
uses: golangci/golangci-lint-action@v7
5858
with:
59-
version: v1.64
59+
version: v2.10.1
6060
working-directory: go
6161

6262
golangci-lint-all:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ target/
1919
.dart_tool/
2020
.packages
2121
.pub-cache/
22+
go.work
2223
go.work.sum
2324
packages/jetbrains/.gradle
2425
packages/jetbrains/bin/

0 commit comments

Comments
 (0)