GO111MODULE=off

オープン
#44 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go

調査の方向性

README と Makefile から始め、issue に記載されているコマンドとソースファイルを使って、報告された Go 1.21.4 の動作を再現します。README を関連するインストールおよびビルドの手順で更新し、kingpin のグローバルインストールと make の実行の両方に対応していることを確認します。

索引モデルが issue の本文から書いたものです。

説明

by reading https://stackoverflow.com/questions/36650052/golang-equivalent-of-npm-install-g

I noticed this:

As of Go 1.11.1, setting GO111MODULE=off works to circumvent this behavior:

GO111MODULE=off go get github.com/usr/repo

i'm on go 1.21.4, i needed to use it both for installing kingpin globally and for running make because the default now is to check for go.mod locally unless this is set to off.

i'm not really sure if it's common knowledge maybe it's worth mentioning in the readme.

# go get gopkg.in/alecthomas/kingpin.v2
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.
# make
go build -o todo2 todo.go view.go consoleview.go legacyio.go jsonio.go main.go importer.go
main.go:26:2: no required module provides package gopkg.in/alecthomas/kingpin.v2: go.mod file not found in current directory or any parent directory; see 'go help modules'
make: *** [Makefile:12: todo2] Error 1
主要言語
Go
スター
111
フォーク
22
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alecthomas/devtodo2 のほかの issue

alecthomas/devtodo2 の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。