Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependabot conflicts due to indentation because of different whitespace settings #11531

Open
1 task done
Sella-GH opened this issue Feb 9, 2025 · 0 comments
Open
1 task done
Labels
L: github:actions GitHub Actions T: bug 🐞 Something isn't working

Comments

@Sella-GH
Copy link

Sella-GH commented Feb 9, 2025

Is there an existing issue for this?

  • 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

No response

dependabot.yml content

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
  - package-ecosystem: "github-actions" # See documentation for possible values
    directory: "/.github/workflows" # Location of package manifests
    schedule:
      interval: "daily"
    assignees:
      - "Sella-GH"
    commit-message:
      prefix: "[Actions]"
      include: "scope"
    labels:
      - "area-ci"
      - "area-dependencies"

https://github.com/Sella-GH/AzzyBot/blob/main/.github/dependabot.yml

Updated dependency

No response

What you expected to see, versus what you actually saw

What happens:
I have my white space settings set to Spaces, 4 Spaces Width and enforce this through an .editorconfig file in the root.
When Dependabot starts updating and filling a PR it rewrites all the white spaces in the file to match Spaces, 2 Spaces Width. This behavior creates conflicts each time when I pull the repo through GitHub Desktop / Visual Studio 2022.

What I expect to happen:
Dependabot respects the existing white space on the files and does not modify it.
Maybe even with a configuration switch to let the user decide which indentation is wanted?

Native package manager behavior

No response

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

An example where it just rewrites the whole file:
Sella-GH/AzzyBot#283

Smallest manifest that reproduces the issue

No response

@Sella-GH Sella-GH added the T: bug 🐞 Something isn't working label Feb 9, 2025
@github-actions github-actions bot added the L: github:actions GitHub Actions label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: github:actions GitHub Actions T: bug 🐞 Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant