Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

パッケージ管理ツール🔧をdepからgo modを使うように変更🌟❣ #10

Merged
merged 2 commits into from
May 31, 2019
Merged

Conversation

jiro4989
Copy link
Contributor

depは公式が開発しているパッケージ管理ツール🔧ですが、
個人的おすすめ♥としてgo version11からgoコマンドに組み込まれている
go modを使うように設定を変更しました😃😁❣

export GO111MODULE=onで環境変数をセットした状態でgo buildすれば
パッケージ管理に必要なgo.modとgo.sumファイルが自動で生成されます。

しかしながら、depでもパッケージ管理可能ですし、
greymdさんがそちらを好んで❤使用しているなど、理由がありましたら
PRはリジェクトしてくださって結構です。

ご確認のほどよろしくお願いいたしマス❢🌟チュッ♥

`export GO111MODULE=on`を例えば.bashrcなどに設定しておいて
常にONにした状態だと、`go get`を実行した際に
カレントディレクトリにgo.modファイルが存在しないか検査するように
go getの挙動が変化する。

コマンドとしてインストールしたいときにこの挙動をされると困るため
一時的にoffにしてインストールする方法について記載した。
@@ -0,0 +1,13 @@
module github.com/jiro4989/ojichat
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jiro4989 チャン、 おじさんのリポジトリに、
@jiro4989 チャンの足跡を残そうとしてもそうは行かないゾ😘😚(笑)
小さい修正だから、おじさんが、あとで直しておこうカナ ✋ 😄

Copy link
Contributor Author

@jiro4989 jiro4989 May 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@greymd チャン 😱 😱 😱 オジサン気づかなかったヨ・・・ごめんなサイ 😓 💦

@greymd
Copy link
Owner

greymd commented May 31, 2019

おじさん、流行りになかなかついていけないから 😱 😱
go mod 知らなかっタヨ 😄 😂
なかなか、良さそうダネ 🤗 ❤️ ❤️
手元で少し試したら、マージしようカナ ✋

@greymd greymd mentioned this pull request May 31, 2019
@greymd greymd merged commit f092e62 into greymd:master May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants