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

-inpkg and -output options don't work together #206

Closed
limscoder opened this issue Aug 1, 2018 · 2 comments
Closed

-inpkg and -output options don't work together #206

limscoder opened this issue Aug 1, 2018 · 2 comments

Comments

@limscoder
Copy link

-inpkg flag generates the mock file in the same directory as the source file, specifying -output has no effect when -inpkg is set.

I'd like to have a directory structure like this:

- packagename
  - mocks
    mock_client.go
  client.go
@MikeWarren2014
Copy link

Are you able to get -output working at all? I'm not able to.

I'm trying to do something like this :

`

  • %GOPATH%
    • src
      • [my project]
        • testing
          • mocks
            • mock_Store.go // my boss wants the mock here.
      • github.com
        • astaxie
          • beego
            • session
              • session.go // contains the Store that I want to mock`

@LandonTClipp
Copy link
Collaborator

Hi, v1 is not supported anymore, closing this ticket. Please open a separate ticket if you still experience this issue. Thanks!

Please note that many issues are going to be fixed once the packages feature is fully adopted.

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

3 participants