Giter Site home page Giter Site logo

error using go mod about bfchroma HOT 4 CLOSED

depado avatar depado commented on May 20, 2024
error using go mod

from bfchroma.

Comments (4)

Depado avatar Depado commented on May 20, 2024 1

So I've just tested it again, and indeed the error shows up.
Simply add the directive

replace gopkg.in/russross/blackfriday.v2 => github.com/russross/blackfriday/v2 v2.0.1

to your go.mod and tell me if that works.

from bfchroma.

Depado avatar Depado commented on May 20, 2024

Hey,
So first of all I've had a whole bunch of issues related to this.
Now bfchroma uses this directive in the go.mod file:

replace gopkg.in/russross/blackfriday.v2 => github.com/russross/blackfriday/v2 v2.0.1

So in the bfchroma code I'm using the gopkg.in notation so that people that are not using modules can still go get the code. People using go modules should see no difference though, so I don't understand why you're facing an issue now.

Can I see your go.mod file? Or at least the section that requires both bfchroma and blackfriday?
Note that blackfriday developers recommend using the gopkg.in notation. I don't know why though.

from bfchroma.

jasin avatar jasin commented on May 20, 2024

Yeah that works, I really have no idea why that is required, seems like maybe an issue with blackfriday. But thanks for the help

from bfchroma.

Depado avatar Depado commented on May 20, 2024

Honestly I thought that was not needed since I already put that in the go.mod of bfchroma.
Guess I still have to learn some things about go modules 🤷‍♂️

Thanks for reporting the issue anyway, have a gif

hello

from bfchroma.

Related Issues (10)

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.