dependabot / dependabot/dependabot-core

A commit created by Dependabot contains a file treating unchanged parts as changed in the diff

Open
#9,537 2 comments 0 reactions 0 assignees View on GitHub
L: git:submodules L: github:actions T: bug 🐞
Dominant language
Ruby
Stars
5.8k
Forks
1.5k
Avg merge
2d 14h
Merged PRs (30d)
156

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Package ecosystem

GitHub Actions

### Package manager version

_No response_

### Language version

_No response_

### Manifest location and content before the Dependabot update

### dependabot.yml content

### Updated dependency

_No response_

### What you expected to see, versus what you actually saw

* **Actual Behaviour**:
* It seems like the whole file changed.
* A part of the diff: (actual diff shows whole file changed)
```diff
- steps:
- - uses: actions/checkout@v3
- with:
- submodules: recursive
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: recursive
```
* Also, this behavior makes conflicts occur when merging in the local repository.
* When I merged Dependabot PR on the web, in the local repository, the git command recognized the file concerned as changed even if the file has no change, and I cannot discard those "no change" changes.
* **Expected Behaviour**
* Diff should show only changed lines:
```diff
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
submodules: recursive
```
* Also, conflicts should not occur on lines where nothing has changed.

### Native package manager behavior

_No response_

### Images of the diff or a link to the PR, issue, or logs

*
*
*
*
* - sometimes working correctly

### Smallest manifest that reproduces the issue

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.