Skip to content

chore: Update README.md to fix installation instructions - #443

Merged
Jefftree merged 1 commit into
google:mainfrom
julieqiu:patch-1
Aug 14, 2025
Merged

Jefftree merged 1 commit into
google:mainfrom
julieqiu:patch-1

Conversation

@julieqiu

Copy link
Copy Markdown
Contributor

Fix this error in the installation instructions:

go install github.com/google/gnostic/cmd/protoc-gen-openapi
go: 'go install' requires a version when current directory is not in a module
	Try 'go install github.com/google/gnostic/cmd/protoc-gen-openapi@latest' to install the latest version

@julieqiu
julieqiu requested a review from a team as a code owner May 26, 2024 14:50
Fix this error in the installation instructions:

```
go install github.com/google/gnostic/cmd/protoc-gen-openapi
go: 'go install' requires a version when current directory is not in a module
	Try 'go install github.com/google/gnostic/cmd/protoc-gen-openapi@latest' to install the latest version
```
@Jefftree
Jefftree merged commit e0e09f7 into google:main Aug 14, 2025
2 checks passed
dodangquan pushed a commit to dodangquan/protoc-gen-openapi that referenced this pull request Oct 3, 2025
Fix this error in the installation instructions:

```
go install github.com/google/gnostic/cmd/protoc-gen-openapi
go: 'go install' requires a version when current directory is not in a module
	Try 'go install github.com/google/gnostic/cmd/protoc-gen-openapi@latest' to install the latest version
```
chet-wynn-cookieai added a commit to cookieai-jar/gnostic that referenced this pull request Jan 21, 2026
* Fix typos in README.md (google#423)

* generate-gnostic: fix dropped errors (google#415)

* metrics/vocabulary: err check before Close() (google#425)

* plugins/gnostic-analyze/summarize: fix dropped error (google#426)

* feat: handle escape and null value (google#419)

* chore: migrate from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 (google#454)

* chore: migrate from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3

Replace deprecated gopkg.in/yaml.v3 import path with the new canonical
go.yaml.in/yaml/v3 path across the codebase. This migration ensures
compatibility with modern Go toolchain and dependency management.

Changes include:
- Update yaml import path in discovery, generate-gnostic, and tools
- Upgrade Go version from 1.12 to 1.24.5
- Update dependencies: protobuf (1.36.6), gnostic-models (0.7.0), go-cmp (0.6.0)
- Modernize code style with implicit struct literals and short variable declarations
- Regenerate protobuf code with latest protoc-gen-go (1.36.6) and protoc (5.29.3)
- Add performance optimizations using unsafe package in generated code

This maintains backward compatibility while adopting the supported import path
for yaml.v3 library going forward.

* sync

* sync

* fix: improve code quality and security in plugins environment

- Use proper format string in fmt.Fprintf to prevent format string vulnerabilities
- Update file permissions to modern octal syntax (0755 -> 0o755)
- Fix comment spacing to follow Go style conventions

These changes address static analysis warnings and improve code maintainability
while maintaining the same functionality.

* refactor: improve code quality and use modern Go APIs

- Remove unnecessary fmt.Sprintf calls for static error messages in OpenAPIv3
- Replace deprecated strings.Replace(-1) with strings.ReplaceAll for clarity
- Simplify string formatting where no placeholders are used

These changes improve code readability, performance, and follow modern Go
best practices while maintaining identical functionality.

* chore: update dependencies and regenerate protobuf files

Update Go dependencies to latest versions:
- golang.org/x/tools: v0.35.0 → v0.36.0
- google.golang.org/protobuf: v1.36.6 → v1.36.7
- google.golang.org/genproto: updated to 20250811160224
- golang.org/x/mod: v0.26.0 → v0.27.0
- golang.org/x/net: v0.42.0 → v0.43.0
- golang.org/x/text: v0.27.0 → v0.28.0

Regenerate protobuf files with protoc-gen-go v1.36.7 to reflect
the updated dependency versions.

This maintenance update ensures the project uses the latest stable
versions of its dependencies with security fixes and improvements.

* Update README.md (google#443)

Fix this error in the installation instructions:

```
go install github.com/google/gnostic/cmd/protoc-gen-openapi
go: 'go install' requires a version when current directory is not in a module
	Try 'go install github.com/google/gnostic/cmd/protoc-gen-openapi@latest' to install the latest version
```

---------

Co-authored-by: Piper <piperchester@users.noreply.github.com>
Co-authored-by: Lars Lehtonen <lars.lehtonen@gmail.com>
Co-authored-by: Just-maple <31134320+Just-maple@users.noreply.github.com>
Co-authored-by: F. <62474964+hyp3rd@users.noreply.github.com>
Co-authored-by: Julie Qiu <julie@golang.org>
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