-
Notifications
You must be signed in to change notification settings - Fork 24
buffalo >= 0.16.26 breaks when vendoring is used #32
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
@paganotoni any idea on the direction how this might be resolved? |
Hey @artem-sidorenko. Let me take a look at this one over the week. Thanks for following up. I'm moving it to the CLI repo. |
I tried this one with latest version but it worked. @artem-sidorenko can you try installing latest CLI version and retrying? Thanks in advance. |
@paganotoni Thx! I can confirm, it looks good on v0.17.5 |
@paganotoni the same issue in version is v0.18.2 back
|
@paganotoni: the only fix I see is to call I think this defeats the purpose of the vendor directory? I'm not sure, since go modules where introduced I haven't used vendor any more. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
@paganotoni @fasmat in the current behavior (buffalo 0.18.4) it works without the hack for the unit tests, but breaks for the build any chance to see here an idea how this might be resolved? I'm wondering there are no other bug reports on this.. |
Description
gobuffalo/buffalo#2119 introduced
go get -d
duringbuffalo build
.aa.go
, created duringbuffalo build
containsflect
(which isn't a direct import in the application). Because ofgo get -d
this leads to the modifiedgo.mod
with explicit dependency and to a mismatch withvendor/modules.txt
with following error message:If you add flect manually to the
go.mod
, it will vanish by the nextgo mod tidy
.Current workaround is to add
_ "github.com/gobuffalo/flect"
to the import in main.go (or somewhere else) and rungo mod vendor
Steps to Reproduce the Problem
buffalo build -v
- it worksgo mod vendor
buffalo build -v
- it breaksI could reproduce it on buffalo cmd >= 0.16.26 and on the latest 0.17.1
Expected Behavior
buffalo should support vendoring
Actual Behavior
buffalo doesn't build when vendoring is enabled
Info
Please run
buffalo info
and paste the information below where it says "PASTE_HERE".The text was updated successfully, but these errors were encountered: