Coder Social home page Coder Social logo

use packr2 in command line about packr HOT 1 CLOSED

TQuy avatar TQuy commented on June 11, 2024
use packr2 in command line

from packr.

Comments (1)

sio4 avatar sio4 commented on June 11, 2024

Hi @TQuy,

It seems like the document you are referring to is somewhat outdated from some perspectives:

  1. When installing a module with a command, in go1.18, the old method go get is deprecated. (see [1]) You can use the following command:

    go install github.com/gobuffalo/packr/v2/packr2@latest

    For the command installation, as your error message told you, the path to the main package should be provided as an argument for the install command and the path for the packr2 is like above.

  2. More important change (for us): Packr was deprecated and not maintained now. For the (almost) same purpose of the file embedding, now you can use the go standard library's embed package so no more third-party packages are required for the file embedding. (see [2])

    All buffalo families are also migrated to the standard embed, and this repository will be archived soon. :-)

[1] https://tip.golang.org/doc/go1.18#go-get:~:text=go%20get%20no%20longer%20builds%20or%20installs%20packages%20in%20module%2Daware%20mode.
[2] https://pkg.go.dev/embed

from packr.

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.