Skip to content

Magefiles dependencies in go.mod #243

@ntrrg

Description

@ntrrg

Hi, if you try to import any library using Mage, you will download Mage as a dependency. You can try that with Hugo:

main.go

package main

import (
	"fmt"

	"github.com/gohugoio/hugo/livereload"
)

func main() {
	fmt.Printf("%s\n", livereload.Handler)
}
$ go mod init go-test
$ go run main.go

The reason is because the go.mod file from Hugo includes Mage and any other magefile dependency in it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions