diffplug / diffplug/spotless

ratchetFrom 'origin/main' does not fetch if not present

オープン
#710 コメント 28 件 リアクション 8 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Java
スター
5.6k
フォーク
559
平均マージ
1日 13時間
マージ済み PR(30日)
34

説明

If you specify `rachetFrom` and the branch doesn't exist locally, it should be fetched by the ratchet infrastructure.

https://github.com/JLLeitschuh/spotless/runs/1200916598?check_suite_focus=true#step:5:56
```
[2020-10-02 21:07:06] [autobuild] * What went wrong:
[2020-10-02 21:07:06] [autobuild] A problem occurred evaluating project ':ide'.
[2020-10-02 21:07:06] [autobuild] > Could not create task ':lib:spotlessJava'.
[2020-10-02 21:07:06] [autobuild] > No such reference 'origin/main'
```

### EDIT: Summary of workarounds from below

- **GitHub Actions**: add `fetch-depth: 0` to `.yml`
- **GitLab CI**: add `GIT_DEPTH: 0` under the `variables:` section of `.gitlab-ci.yml`
- **BitBucket Pipelines**: `clone: depth: full`
- **Travis**: `git: depth: false`

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

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

評価

この issue はまだ評価されていません。

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

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