Comments (6)
Adding:
replace github.com/smartystreets/assertions v1.15.0 => github.com/smartystreets/assertions v1.13.0
To my go.mod fixes this for now.
from goa.
Tried it again and got the same error as before. Deleted smartystreets from go.mod and deleted go.sum, re-ran build commands and it worked. I think the difference was that assertions was being required as v1.15.0, but is now required as v1.13.1.
from goa.
I just released Goa v3.12.1 with updated dependencies.
from goa.
The issue persists. I think this is a trickle down dependency issue..
Unless I'm misreading it, goregen needs to either update their go.mod or your expr module needs to use convey directly rather than indirectly through goregen.
go: finding module for package github.com/smartystreets/assertions
go: finding module for package github.com/jtolds/gls
go: found github.com/jtolds/gls in github.com/jtolds/gls v4.20.0+incompatible
go: found github.com/smartystreets/assertions in github.com/smartystreets/assertions v1.15.0
go: [redacted] imports
goa.design/goa/v3/dsl imports
goa.design/goa/v3/expr imports
github.com/zach-klippenstein/goregen tested by
github.com/zach-klippenstein/goregen.test imports
github.com/smartystreets/goconvey/convey imports
github.com/smartystreets/assertions: github.com/smartystreets/[email protected]: parsing go.mod:
module declares its path as: github.com/smarty/assertions
but was required as: github.com/smartystreets/assertions
from goa.
Seems that package is only used in one place:
from goa.
Could you post repro steps for this issue? I can't seem to reproduce with a simple example, the following compiles and runs fine for me:
package main
import (
"fmt"
"goa.design/goa/v3/dsl"
)
func main() {
it := dsl.Type("Person", func() {
dsl.Attribute("name", dsl.String)
})
fmt.Println(it)
}
Given the following go.mod
:
module example
go 1.20
require goa.design/goa/v3 v3.12.1
require (
github.com/dimfeld/httppath v0.0.0-20170720192232-ee938bf73598 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gopherjs/gopherjs v1.17.2 // indirect
github.com/jtolds/gls v4.20.0+incompatible // indirect
github.com/manveru/faker v0.0.0-20171103152722-9fbc68a78c4d // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/smartystreets/assertions v1.13.1 // indirect
github.com/stretchr/testify v1.8.3 // indirect
github.com/zach-klippenstein/goregen v0.0.0-20160303162051-795b5e3961ea // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/text v0.11.0 // indirect
golang.org/x/tools v0.11.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
from goa.
Related Issues (20)
- Incomplete definition of OpenAPI response with SkipResponseBodyEncodeDecode
- Pull #3250 changed the openapi returned types for views, breaking anything code-gen'ing types for each schema.
- Slack join link doesn't work. HOT 4
- HTTP cache - RFC compliant with many other features HOT 7
- Something strange happens when using ArrayOf(Int32) with MultipartRequest() in a Method()! HOT 2
- Optional Boolean attributes with defaults don't distinguish between unset and false HOT 4
- `Maximum()`; `validation_error` points to variable name instead of attribute in response
- generated service code is incorrect when using `Meta` for shared types HOT 2
- Request - additional command line parameters for generation HOT 4
- OpenAPI response may be declared even though Result is empty HOT 1
- Duplicate function definitions to implement the OneOf in generated code when using Meta("struct:pkg:path", "types")
- Is there a nice way to integrate AsyncAPI into goa? HOT 1
- Make endpointsData public HOT 1
- goa gen only generating structs for types contained in service definitions HOT 1
- Meta openapi:example still generates example if put at API level HOT 1
- Goa not enforcing required attribute HOT 6
- grpc stream.Recv doesn't decode errors HOT 1
- can't use SkipRequestBodyEncodeDecode and authentification at the same time HOT 7
- Shouldn't body be closed by decoder ? HOT 12
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 goa.