ember-cli / ember-cli/ember-cli-app-version

local build showing different format than CI build

オープン
#67 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
55
フォーク
42
PR マージ指標
30日以内にマージされた PR はありません

説明

If I trigger build on gitlab, I end up with an artifact which always shows the version + a part of the commit hash like `0.3.4+05bab3e2`

If I build locally I get the short version like `0.3.4`

hbs:
```
{{app-version versionOnly=true}}
```

command is `ember build --environment production` in both cases

What I noticed is that the builds artifacts differ in their index.html. Both have a meta tag which contains the version information. However the CI seems to populate the `version` field with data from `package.json` and the local build seems to use the git tag. The `code_version` field is identical on both. Just noticed because I was using a new tag but kept the previous version in package.json

Any ideas what might be happening or how to get the short format without the commit hash within the CI build on gitlab?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

package.json、hbs スニペット、ローカルおよび GitLab のビルドから生成された index.html ファイルから始めます。両方の環境で `ember build --environment production` を実行し、CI が package.json のバージョンを使用する一方でローカルビルドが git tag を使用する理由を追跡します。CI アーティファクトがコミットハッシュなしで要求された短いバージョンを生成し、両方のビルドパスに対して動作が検証されれば完了です。

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

評価

技術スタック
javascript
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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