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

環境変数COMMIT_IDの取扱い #214

Open
nikosai opened this issue Jul 16, 2019 · 0 comments
Open

環境変数COMMIT_IDの取扱い #214

nikosai opened this issue Jul 16, 2019 · 0 comments

Comments

@nikosai
Copy link
Contributor

nikosai commented Jul 16, 2019

現在、git show -s --format=%h によって得られるコミットID(ハッシュ)を COMMIT_ID という環境変数に入れて、slim --version などを呼んだときに表示するようにしている。

$ slim --version
Slim Lmntal IMplementation - version 2.3.1 (c2574d4)

しかし、バイナリがGitリポジトリ下にないとき(バンドル版のslimなど)ではCOMMIT_IDが空になってしまう。

$ slim --version
Slim Lmntal IMplementation - version 2.4.0 ()
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

No branches or pull requests

1 participant