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

Inconsistent behavior with circular import on MacOS #9168

Open
guyarad opened this issue Oct 19, 2023 · 0 comments
Open

Inconsistent behavior with circular import on MacOS #9168

guyarad opened this issue Oct 19, 2023 · 0 comments
Labels
macOS Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling

Comments

@guyarad
Copy link

guyarad commented Oct 19, 2023

Bug description

The issue appeared when the code allegedly had a circular dependency. pylint did not complained on a MacOS machine, but did complain on Linux. However, I was able to narrow it down to a file-system (???) issue by demonstrating an inconsistent behavior when running inside a container on a local folder versus a mounted folder (when the host is a MacOS).

I added details and how-to reproduce here

TL;DR - to reproduce on MacOS run:

git clone git@github.com:guyarad/pylint-macos-issue.git
cd pylint-macos-issue
make bug_repro

Configuration

No response

Command used

pylint --recursive=y --disable=W,C0114,C0115,C0116,R0903 -s=n .

Pylint output

Inconsistent - on Linux:

************* Module module1.derived
module1/derived.py:1:0: R0401: Cyclic import (module1 -> module1.derived) (cyclic-import)

But on a MacOS it was successful.

Expected behavior

Consistent behavior when running on a mounted folder and local folder (when all files are identical).

Pylint version

pylint 3.0.1
astroid 3.0.1
Python 3.11.6 (main, Oct  3 2023, 03:39:03) [GCC 10.2.1 20210110]

OS / Environment

Model Name: MacBook Pro
Model Identifier: Mac14,10
Chip: Apple M2 Pro
OS Version: Ventura 13.5

Additional dependencies

No response

@guyarad guyarad added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Oct 19, 2023
@Pierre-Sassoulas Pierre-Sassoulas added Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning macOS labels Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS Needs investigation 🔬 A bug or crash where it's not immediately obvious what is happenning Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling
Projects
None yet
Development

No branches or pull requests

2 participants