shasum hash mismatch on CI
#2933
|
Hey, I'm facing a build issue with my Snap package in GitHub Actions CI. The I assume skipping the Here is what the workflow looks like - jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install Yarn dependencies
run: yarn --immutable
build:
name: Build
runs-on: ubuntu-latest
needs:
- prepare
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn --immutable --immutable-cache
- run: yarn build
- name: Cache snap build
uses: actions/cache@v3
with:
path: ./packages/snap/dist
key: snap-${{ runner.os }}-${{ github.sha }}
- name: Require clean working directory # <-- failing
shell: bash
run: |
if ! git diff --exit-code; then
echo "Working tree dirty at end of job"
exit 1
fi
Could this mismatch possibly be because of different operating systems? The CI uses ubuntu while I'm using MacOS locally. Thanks in advance! |
Replies: 4 comments 7 replies
|
Hi @shamoilarsi we are currently looking into it, thanks for listing all the details |
|
Could you please check if you are building your Snap locally and committing |
|
@roo-shy found this in the build logs here is the error log during the |
|
@roo-shy hey it looks like my colleague can build the project locally with the right |
@roo-shy I've found the issue. It was due to a mismatch in the env variable between my local system and the CI.
The env was set to
developmentin my local system while in the CI it was empty which lead to different variable values and hence differentshasumhashes. Thanks