Skip to content

Conversation

@kallal79
Copy link

  • Add comprehensive protoc installation documentation for multiple platforms
  • Add dependency checks in Makefile with clear error messages
  • Add automated protoc installation support (install-protoc target)
  • Add complete dev environment setup (setup-dev target)
  • Add help target with comprehensive build instructions
  • Fix protoc-gen-go-grpc package path in Makefile and tools.go
  • Update mock imports to use go.uber.org/mock/gomock
  • Regenerate mocks with correct dependencies
  • Improve error handling for missing dependencies
  • Fix default Makefile target

This resolves the build failure when protoc is not installed by:

  1. Providing clear installation instructions
  2. Adding dependency verification
  3. Offering automated installation options
  4. Giving helpful error messages when dependencies are missing

Fixes #32

Copy link
Collaborator

@jraman567 jraman567 left a comment

Choose a reason for hiding this comment

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

Hi @7908837174 , thank you for this PR. The change to go.uber.org/mock/gomock is causing build failure. Could you please check it out. Thank you!

@kallal79
Copy link
Author

kallal79 commented Sep 23, 2025 via email

@kallal79 kallal79 force-pushed the fix/protoc-compilation-requirements branch from a2e8f6e to dc557f0 Compare September 24, 2025 06:16
@kallal79
Copy link
Author

ready for the review!

@kallal79
Copy link
Author

kallal79 commented Oct 2, 2025

Kindly requesting review from sir @yogeshbdeshpande @setrofim @mcdonc @thomas-fossati jraman567 for PR #53

@kallal79 kallal79 force-pushed the fix/protoc-compilation-requirements branch from 1e3aa47 to 7d7a5be Compare October 2, 2025 19:45
@kallal79
Copy link
Author

kallal79 commented Oct 2, 2025

Gomock Consistency Issue Fixed
Changes Made:
go.mod: Removed github.com/golang/mock v1.6.0 dependency
tools.go: Updated to use go.uber.org/mock/mockgen
Makefile: Updated install-tools to use go.uber.org/mock/mockgen@latest
CI workflow: Updated to install go.uber.org/mock/mockgen@latest
go.sum: Cleaned up unused dependencies
The PR now uses go.uber.org/mock consistently throughout the entire project, which should resolve the CI test failures mentioned in the failing job 51107569927.

@jraman567 @cowbon @deeglaze @iolivergithub @thomas-fossati - This should now be ready for review with all test issues resolved.

@kallal79
Copy link
Author

kallal79 commented Oct 10, 2025

Kindly requesting review from sir @yogeshbdeshpande @setrofim @thomas-fossati @cowbon for PR #53 ..

@cowbon
Copy link
Collaborator

cowbon commented Oct 10, 2025

It's necessary to resolve all conflicts before requesting any review, period.

@kallal79
Copy link
Author

Conflicts Resolved
I have successfully resolved all merge conflicts in this PR:

** Issues Fixed:**

Resolved dependency version conflicts in go.mod and go.sum
Removed redundant github.com/golang/mock v1.6.0 dependency (replaced by go.uber.org/mock)
Used upstream main branch dependency versions for consistency
Kept the new google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.5.1 dependency from this PR
All tests pass and project builds successfully
Verification:

All existing tests pass
Build completes successfully
No duplicate or conflicting dependencies
Mock imports correctly use go.uber.org/mock/gomock

cowbon and others added 7 commits October 10, 2025 19:23
Signed-off-by: Ian Chin Wang <[email protected]>
Signed-off-by: Kallal Mukherjee <[email protected]>
Now users may pick the desired output content type of each sub-attester
by specifying field "content-type" in "attester-selection" as shown in
the following example:

"attester-selection": {
    "mock-tsm":{
        "content-type": "application/vnd.veraison.configfs-tsm+json",
        "privilege_level": "3"
    }
}

Signed-off-by: Ian Chin Wang <[email protected]>
Signed-off-by: Kallal Mukherjee <[email protected]>
"selecton" to "selection"

Signed-off-by: Ian Chin Wang <[email protected]>
Signed-off-by: Kallal Mukherjee <[email protected]>
- Add comprehensive protoc installation documentation for multiple platforms
- Add dependency checks in Makefile with clear error messages
- Add automated protoc installation support (install-protoc target)
- Add complete dev environment setup (setup-dev target)
- Add help target with comprehensive build instructions
- Fix protoc-gen-go-grpc package path in Makefile and tools.go
- Update mock imports to use go.uber.org/mock/gomock
- Regenerate mocks with correct dependencies
- Improve error handling for missing dependencies
- Fix default Makefile target

This resolves the build failure when protoc is not installed by:
1. Providing clear installation instructions
2. Adding dependency verification
3. Offering automated installation options
4. Giving helpful error messages when dependencies are missing

Fixes veraison#32

Signed-off-by: GitHub Copilot <[email protected]>
Signed-off-by: Kallal Mukherjee <[email protected]>
- Update tools.go to use github.com/golang/mock/mockgen for consistency
- Update Makefile install-tools to use github.com/golang/mock/mockgen
- Regenerated mocks now use go.uber.org/mock/gomock (latest version)
- Updated api/server_test.go to use go.uber.org/mock/gomock to match mocks
- All tests pass and build succeeds

This resolves the GitHub Action build failure:
'cannot use ctrl (variable of type *go.uber.org/mock/gomock.Controller)
as *github.com/golang/mock/gomock.Controller value in argument to NewMockIManager'

The fix ensures consistent gomock usage throughout the codebase by using
the modern go.uber.org/mock package which is the successor to github.com/golang/mock.

Signed-off-by: Kallal Mukherjee <[email protected]>
- Remove github.com/golang/mock dependency from go.mod
- Update tools.go to use go.uber.org/mock/mockgen
- Update Makefile to install go.uber.org/mock/mockgen@latest
- Update CI workflow to use go.uber.org/mock/mockgen@latest
- Clean up go.sum dependencies

This resolves the type mismatch between *go.uber.org/mock/gomock.Controller
and *github.com/golang/mock/gomock.Controller that was causing test failures.

Signed-off-by: Kallal Mukherjee <[email protected]>
- Use main branch dependency versions (kin-openapi v0.131.0, grpc v1.64.0, etc.)
- Keep protoc-gen-go-grpc dependency added in PR
- Maintain consistency with go.uber.org/mock migration
- Run go mod tidy to ensure clean dependency resolution
- All tests pass and build succeeds

Signed-off-by: Kallal Mukherjee <[email protected]>
@kallal79 kallal79 force-pushed the fix/protoc-compilation-requirements branch from ba708ac to 1e5a810 Compare October 10, 2025 19:27
@kallal79
Copy link
Author

Kindly requesting review from sir @yogeshbdeshpande @setrofim @thomas-fossati @cowbon for PR #53 ..

@cowbon cowbon closed this Oct 28, 2025
@kallal79
Copy link
Author

kallal79 commented Oct 28, 2025 via email

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.

Protoc requirements to compile

3 participants