Comments (6)
It looks like this specific problem can be solved by splitting on os.PathListSeparator
instead of on ':'
.
from counterfeiter.
It warms my heart that people using windows to write golang want to use counterfeiter. Thanks for taking the time to write up this beautiful description, and finding the source of the problem @saintbrendan -- I really appreciate it.
I applied the fix you suggested in 7f6ceee8bbe9189968c960e3593724a953b39151
. Unfortunately I don't have access to a windows machine right now - any chance you'd be willing to check and see if the tests run (and pass ???) on Windows ?
from counterfeiter.
Thanks Tim. You're fast!
I'm swamped this week, but we'll try again this Saturday, and see how much further we get.
Thanks again!
from counterfeiter.
Hello,
When I tried to use it, I came to the following error: format.Node internal error (5:2: invalid import path: "github.com\SAP\cf-mta-plugin\clients\restclient") In my code, there is no import path with the following signature(\).
from counterfeiter.
@enchobelezirev Very Interesting. I don't think I'll be able to debug that very well, since that sounds really specific to your project. If you think you can create a reproducible test case for that, I'd be more than happy to either contribute a fix, or help you in submitting a PR and getting it merged in a timely fashion.
I'm also not entirely convinced that is related to this issue. Were you trying to run ./scripts/test.sh
on a windows machine ? Could you walk me through some of the steps you took that resulted in that error being printed ?
from counterfeiter.
It looks like I was mistaken before. The error @enchobelezirev encountered is actually valid - there is some more discussion over in issue #79.
I believe this to be fixed on master - at least, I can no longer reproduce this in a windows vm I'm using. Going forward, I'm going to invest a bit this week in setting up CI for windows so that these issues are discovered automatically and not by the community.
For now, I'd like to close this issue out, since I believe the original issue to be resolved. Please re-open this issue if I'm in error.
from counterfeiter.
Related Issues (20)
- counterfeiter does not work via go generate if outside PATH HOT 10
- go list gives conflicting information for package HOT 1
- feature request: add flag to change generated fakes folder suffix HOT 1
- Cannot generate fakes for types that use aliased internal types HOT 7
- Avoid using `packages.Load` if possible
- Avoid fast-failing on unresolved imports that aren't used in the target interface
- Support overriding destination package name and type naming template in "-generate" call HOT 5
- Support for DoThingsCallsOnCall(callCount, stub ...) similar to DoThingsReturnsOnCall(callCount)
- How to use shorthand generate directive for external packages? HOT 1
- cannot find GOROOT directory HOT 1
- Go 1.18 generics HOT 8
- cannot write tests in package being tested due to import cycle
- [CVE-2020-11022] Update of counterfeiter/v6 needed HOT 2
- Homebrew: Does not complete test on Go 1.20rc1 HOT 4
- disable CircleCI HOT 2
- cannot use json.Marshal(h) (value of type []byte) as driver.Value value in return statement HOT 1
- Support for callback func stub? HOT 1
- Cannot regenerate fakes if they are relied upon and deleted - go1.19.10 HOT 1
- About the latest release HOT 6
- Allow setting destination package name independent of directory name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from counterfeiter.