Coder Social home page Coder Social logo

Upstream indirect dependency change about goa HOT 6 CLOSED

dnapier avatar dnapier commented on June 11, 2024
Upstream indirect dependency change

from goa.

Comments (6)

maxmcd avatar maxmcd commented on June 11, 2024 2

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.

dnapier avatar dnapier commented on June 11, 2024 1

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.

raphael avatar raphael commented on June 11, 2024

I just released Goa v3.12.1 with updated dependencies.

from goa.

dnapier avatar dnapier commented on June 11, 2024

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.

Smarty Assertions Issue 52

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.

dnapier avatar dnapier commented on June 11, 2024

Seems that package is only used in one place:

expr example

from goa.

raphael avatar raphael commented on June 11, 2024

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)

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.