octomation / go-module

🧩 Template for a typical module written on Go.

Home Page:https://go-module.octolab.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deps: tools: add marwan-at-work/mod

kamilsk opened this issue · comments

Motivation: it allows to update a major version of a dependency.

$  mod upgrade --mod-name=github.com/google/go-github/v44
# update it to v45
//go:build tools

package tools

import (
	_ "github.com/marwan-at-work/mod/cmd/mod"
)

//go:generate go install github.com/marwan-at-work/mod/cmd/mod