EAS build on main branch throwing a dirty working tree error
See original GitHub issueDescription of the bug
eas build --platform ios --profile release --non-interactive --auto-submit
shell: /usr/bin/bash -e {0}
env:
EXPO_TOKEN: ***
Warning! Your repository working tree is dirty.
This operation needs to be run on a clean working tree, please commit all your changes before proceeding.
Error: Please commit all changes. Aborting...
Error: Process completed with exit code 1.
I am getting this error when following the docs. Any ideas on how this could be or how to fix it?
To Reproduce
What steps did you perform which led to this issue?
name: Expo Publish
on:
push:
branches:
- production
workflow_dispatch:
jobs:
publish:
name: Install and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: "npm"
- uses: expo/expo-github-action@v6
with:
eas-version: latest
expo-cache: true
expo-version: 4.x
token: ${{ secrets.EXPO_TOKEN }}
- run: npm install
- run: expo publish
- run: eas build --platform ios --profile release --non-interactive --auto-submit
Expected behavior
The build would succeed.
Actual behavior
The build failed with the above error.
Additional context
See YAML.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Failed, DIRTY_WORKTREE in eclipse, how to solve it?
In Eclipse, Explorer pane, rt-click on the specific file causing the merge issue, and select replace with previous revision. Now perform a 'commit...
Read more >Non-interactive does not support a dirty working tree #515
I'm migrating from expo:build to eas:build and, before learning about EAS_NO_VCS=1 (and .easignore ), one of the things I had to do was...
Read more >Here Is How You Can Get Rid Off DIRTY_WORKTREE In Egit
To resolve this issue you can do the following. Always commit your local changes in the file or stash them before you apply...
Read more >please move or remove them before you switch branches - You.com ...
1, view the remote branch Execute the following command in the project root directory: 2 ... git rebase: The following untracked working tree...
Read more >Quick and dirty tree building in R | The Molecular Ecologist
What follows is a tutorial on implementing basic treebuilding methods in R, using an example single-locus alignment of 40 mammal species from ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s what I’m doing now, its just brittle with GitHub actions and protected branches: you need to use a personal token and when we did that we accidentally made a recursive set of commits that blew through our Actions quota for the month in ~15 minutes.
Its all working now but its an absolute pain for a small team unfamiliar with GHA (which I assume is a large part of the Expo userbase). Being able to pass this as a CLI arg would be amazing but I digress.
The “bug” here would be the way it shows up with two different version numbers in the EAS dashboard. If you do not support passing them the way I mentioned above, its very confusing to see that number appear in the builds list in EAS only to then see the build fail with an ominous message from apple upon submission. I would force both numbers in EAS to appear as the “true” build number to help people identify this a lot faster.
Im doing what @brentvatne said above. Its annoying but it works.
Be careful with protected branches.