8000 Difference in mocks generated in github actions · Issue #232 · uber-go/mock · GitHub
[go: up one dir, main page]

Skip to content

Difference in mocks generated in github actions #232

Open

Description

@camaeel

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

Activity

  1. changed the title [-]Difference in mocks generated[/-] [+]Difference in mocks generated in github actions[/+] on Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0