Coder Social home page Coder Social logo

Vendor dir breaks moq (sometimes) about moq HOT 5 CLOSED

matryer avatar matryer commented on May 30, 2024
Vendor dir breaks moq (sometimes)

from moq.

Comments (5)

SebastiaanKlippert avatar SebastiaanKlippert commented on May 30, 2024

I can confirm I am also getting the same error on oid/gen.go when used in packages which use the pq import as import _ "github.com/lib/pq" .

Removing this import before generating the moq interface works and should not break things because it is a blank import name, but is annoying.

We have pq in our vendor directory as well, I will investigate if I have time. Until then some extra info:
go 1.10beta2
os windows 10
latest moq

from moq.

warmans avatar warmans commented on May 30, 2024

if anyone is blocked by this you can use my fork from here https://github.com/warmans/moq

I've been using it for a couple of weeks without any further issues.

Only thing is you need to check it out to the same directory as this repo since I didn't change any import paths. i.e. use GOPATH/src/github.com/matryer/moq rather than GOPATH/src/github.com/warmans/moq.

from moq.

HaraldNordgren avatar HaraldNordgren commented on May 30, 2024

Thanks for the fork, I think this might be the solution. Good to hear that you have been using it for weeks without problems!

from moq.

HaraldNordgren avatar HaraldNordgren commented on May 30, 2024

Fixed by #45 I guess.

from moq.

warmans avatar warmans commented on May 30, 2024

yep this should be fixed now.

from moq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.