ember-cli / ember-cli/ember-cli-app-version
local build showing different format than CI build
- Ngôn ngữ chính
- JavaScript
- Star
- 55
- Fork
- 42
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với package.json, đoạn hbs và các tệp index.html được tạo từ các bản build local và GitLab. Chạy `ember build --environment production` trong cả hai môi trường và truy vết lý do CI sử dụng phiên bản trong package.json trong khi bản build local sử dụng git tag. Được xem là hoàn tất khi artifact CI tạo ra phiên bản ngắn được yêu cầu mà không có commit hash và hành vi được xác minh trên cả hai đường dẫn build.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- build-system
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100