Skip to content

Remove dependency on gen to generate sets#746

Merged
sbarzowski merged 1 commit intogoogle:masterfrom
itchyny:refactor-remove-gen-dependency
Jun 9, 2024
Merged

Remove dependency on gen to generate sets#746
sbarzowski merged 1 commit intogoogle:masterfrom
itchyny:refactor-remove-gen-dependency

Conversation

@itchyny
Copy link
Copy Markdown
Contributor

@itchyny itchyny commented Feb 24, 2024

Previously back in 2017, the set implementations stopped updating due to #95. This PR looks a bit thoughtless, and we should decide how to deal with the code generated by gen. As for now, https://github.com/clipperhouse/gen has been deprecated, and also https://github.com/clipperhouse/set has been renamed to setwriter. Right now the command make install.dependencies does not work in Go 1.22, because go get no longer supports legacy GOPATH mode (see https://tip.golang.org/doc/go1.22#go-command). The set implementations are straightforward, so I would like to suggest to stop using the gen tool to generate set types.

@itchyny itchyny force-pushed the refactor-remove-gen-dependency branch from bd22137 to 12d1600 Compare February 24, 2024 01:08
@itchyny itchyny force-pushed the refactor-remove-gen-dependency branch from 12d1600 to f5dcaa6 Compare February 24, 2024 01:08
@sbarzowski
Copy link
Copy Markdown
Contributor

Yeah, we should avoid using codegen like this.

(We still want codegen for stdlib AST - to avoid parsing overhead on startup, but that's maintained by us and less hairy).

@sbarzowski sbarzowski merged commit e544339 into google:master Jun 9, 2024
itchyny added a commit to itchyny/go-jsonnet that referenced this pull request Jun 10, 2024
sbarzowski pushed a commit that referenced this pull request Jun 10, 2024
* chore: update rules_go and gazelle version to fix bazel build

* chore: fix source file list in ast directory (ref: #746)

* chore: fix dependency list in formatter directory
vhata pushed a commit to discord/go-jsonnet that referenced this pull request Aug 30, 2024
vhata pushed a commit to discord/go-jsonnet that referenced this pull request Aug 30, 2024
…#756)

* chore: update rules_go and gazelle version to fix bazel build

* chore: fix source file list in ast directory (ref: google#746)

* chore: fix dependency list in formatter directory
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