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

Remove dependency on gen to generate sets #746

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

itchyny
Copy link
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
Collaborator

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
1 check passed
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