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

Hab studio tech debt #4727

Merged
merged 4 commits into from
Feb 16, 2021
Merged

Hab studio tech debt #4727

merged 4 commits into from
Feb 16, 2021

Conversation

msorens
Copy link
Contributor

@msorens msorens commented Feb 14, 2021

🔩 Description: What code changed, and why?

Two hab studio fixes included:

(1) Upon entering hab studio, the console output showed this error:

cat: /tmp/docs/check_breaking_for_all_proto_components: No such file or directory

(2) Upon running compile_all_protobuf_components, the console showed these warnings:

protoc -I../../components/notifications-service/server/priv \
	--go_out=plugins=grpc:./api \
	notifications.proto rules.proto server.proto health.proto
2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "notifications.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "rules.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "health.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "server.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

⛓️ Related Resources

NA

👍 Definition of Done

Above error and warnings are gone.

👟 How to Build and Test the Change

(1) hab studio enter
(2) compile_all_protobuf_components (inside hab studio)

✅ Checklist

Details emitted when running `compile_all_protobuf_components`:
```
protoc -I../../components/notifications-service/server/priv \
	--go_out=plugins=grpc:./api \
	notifications.proto rules.proto server.proto health.proto
2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "notifications.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "rules.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "health.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.

2021/02/12 22:17:32 WARNING: Deprecated use of 'go_package' option without a full import path in "server.proto", please specify:
	option go_package = ".;api";
A future release of protoc-gen-go will require the import path be specified.
See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information.
```

Signed-off-by: michael sorens <msorens@chef.io>
Signed-off-by: michael sorens <msorens@chef.io>
Signed-off-by: michael sorens <msorens@chef.io>
@netlify
Copy link

netlify bot commented Feb 14, 2021

Deploy preview for chef-automate processing.

Building with commit a7ac35a

https://app.netlify.com/sites/chef-automate/deploys/602aa96b93e2c200077c83a5

@msorens msorens self-assigned this Feb 14, 2021
Copy link
Contributor Author

@msorens msorens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Author notes

describe "check_breaking_for_all_proto_components" <<DOC
document "check_breaking_for_all_proto_components" <<DOC
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem due to this "typo"

option go_package = "api";
option go_package = ".;api";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applying fix specified in the warning itself.

@msorens msorens added bug 🐛 Something isn't working chore labels Feb 14, 2021
Signed-off-by: michael sorens <msorens@chef.io>
@msorens msorens merged commit ed30507 into master Feb 16, 2021
@msorens msorens deleted the ms/hab-studio-fix branch February 16, 2021 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants