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

Difference in mocks generated in github actions #232

Open
camaeel opened this issue Jan 11, 2025 · 0 comments
Open

Difference in mocks generated in github actions #232

camaeel opened this issue Jan 11, 2025 · 0 comments

Comments

@camaeel
Copy link

camaeel commented Jan 11, 2025

Actual behavior A clear and concise description of what the bug is.

I'm trying to mock Page interface of playwright-go module.

I have example "demo" application here: https://github.com/camaeel/gomock-issue
I run locally (x86_64 macOs 15, with go1.23.4, but also tried in docker container with ubuntu):

mockgen -destination=./mocks/mock_playwright_page.go -package=mocks -imports playwright=github.com/playwright-community/playwright-go github.com/playwright-community/playwright-go Page

and commited into the repo outcome file.
Then I run the same command in github actions, and it shows differences in the mocks generated in github actions pipeline here: https://github.com/camaeel/gomock-issue/actions/runs/12726641995/job/35475249456#step:5:76

Expected behavior A clear and concise description of what you expected to
happen.

Generated mocks should be exactly the same when generated from the same Interface version and with same mockgen version.

To Reproduce Steps to reproduce the behavior

  1. fork repo: https://github.com/camaeel/gomock-issue
  2. trigger action (push anything to master branch)
  3. run the same command locally

Additional Information

  • gomock mode (reflect or source): package mode ?
  • gomock version or git ref: v0.5.0
  • golang version: go1.23.4

Triage Notes for the Maintainers

@camaeel camaeel changed the title Difference in mocks generated Difference in mocks generated in github actions Jan 11, 2025
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

No branches or pull requests

1 participant