Giter Club home page Giter Club logo

Comments (8)

lmcdasm avatar lmcdasm commented on September 26, 2024

Hey again.

Looking at the pathing against the 0.2.0 tag - it seems like the path "spec@commit-id" is somehow in there, instead of spec/schemas/artifactpackgedid.json

something from the release / build hiccup perhaps?

image

from sdk-go.

afrittoli avatar afrittoli commented on September 26, 2024

Thanks @lmcdasm , that's the tag of the spec submodule.
This this the SDK tag https://github.com/cdevents/sdk-go/tree/v0.2.0

from sdk-go.

lmcdasm avatar lmcdasm commented on September 26, 2024

Hello Again.

A couple things - updated to go1.20.2

image

Looking in the GOHOME path after doing a cleanrun and a fresh "go get github.com/cdevents/sdk-go" i took a look inside the package and the file that is complaining - i think you can see from the directory layout "what the issue is - there is no "spec/schema" directory..

image

WHAT I DID:

  • Cloned the source repo and then has to clone the spec.git as well (git clone https://github.com/cdevents/spec.git) into the proper place
  • copied "sdk-go/pkg/api/spec" directory to my GOHOME package dir (shown above)..
  • chown -R 444 the "spec" directory

After this i was able to compile - so i there is an issue when you are publishing the release with that @CommitID in the filename - not sure that is allowed in go get structure.

At any rate, i am able to get a bit further now, but naggy messages about crypto libs now - seems go issue - golang/go#58317

image

from sdk-go.

lmcdasm avatar lmcdasm commented on September 26, 2024

after cleaning out go remants and a "cleaner" install of go, a working build - im not sure why when i do "go get github.com/cdevents/sdk-go" why the "spec" is not coming down/i have to copy it over from the git clone of the repo but its fine.

but :) i have a working dev setup now.. yay and can start to play :)

image

Cheers!
dasm

from sdk-go.

afrittoli avatar afrittoli commented on September 26, 2024

Thanks for reporting this issue @lmcdasm - it looks like the submodule does not work with go modules, I will have to find an alternate solution to embed the schema in the SDK for validation.

from sdk-go.

lmcdasm avatar lmcdasm commented on September 26, 2024

from sdk-go.

afrittoli avatar afrittoli commented on September 26, 2024

@lmcdasm I fixed the issue at #49. Now the submodule with the spec is only used for development (when the code is generated) but there is no more a runtime dependency to the schema files.

from sdk-go.

lmcdasm avatar lmcdasm commented on September 26, 2024

Thanks so much @afrittoli !

from sdk-go.

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.