-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Issues with beta version using relative file paths #2578
Comments
thanks for reporting @Kurt-von-Laven ... let's find out what can be wrong ^^ Own MegaLinter linting is using beta, and for now it's ok -> https://github.com/oxsecurity/megalinter/actions/runs/4752536246/jobs/8443012531 |
It seems for the moment the only major error is npm package dependencies ... maybe the issue with csharpier is just a build issue :/ |
If I understand correctly, the CSharpier issue means MegaLinter will break for anyone with C# files who didn't disable CSharpier. |
I think the third one may be related to typescript-eslint/typescript-eslint#1592. It's also similar to typescript-eslint/typescript-eslint#5223. |
More specifically, the third issue is related to the way we install our Node.js dependencies, namely to POST_COMMANDS:
- command: rm -r node_modules
cwd: workspace
TYPESCRIPT_ES_PRE_COMMANDS:
- command: npm install @tsconfig/[email protected]
- command: cp --recursive /node-deps/node_modules/ node_modules
cwd: workspace This is pretty complex, so I wonder if anyone has any ideas that would make the user experience friendlier for TypeScript + Yarn PnP projects. |
So... maybe we should not force the cd node_deps when we have a npm install instruction ? |
I pondered that as well, but I'm not so sure everyone will consider that a friendlier developer experience. On the one hand, running |
@Kurt-von-Laven I'm trying to fix that in #2601 ... the idea is the following:
Do you think it could work ? ^^ |
@Kurt-von-Laven i tried to reproduce your issue and it seems to work... please can you confirm with the newest beta version ? :) https://github.com/oxsecurity/megalinter/actions/runs/4846602288/jobs/8636240640 |
So, current status:
|
I make a new pinned issue to ask for tests with beta before the new release |
To reproduce issue 1, I suspect one simply needs a {
"version": 1,
"isRoot": true,
"tools": {
"CSharpier": {
"version": "0.23.0",
"commands": ["dotnet-csharpier"]
}
} Running CSHARP_CSHARPIER_PRE_COMMANDS:
- command: dotnet tool restore
continue_if_failed: false
cwd: workspace I haven't had a chance to investigate what introduced this breaking change, so I don't have a sense of the trade-offs yet. At face value it seems negative. Issue 2 has been addressed for non-JS projects provided that the |
I've just faced issue 1 with CSharpier, upgrading MegaLinter from 6.22.2 to 7.0.4. The workaround described above worked (adding But is there a plan to revisit the issue and find a fix inside MegaLinter to avoid users adding the |
mmmm @bdovaz , as the dotnet expert, maybe you have an opinion about @mbelangergit issue ? :) Maybe we should add dotnet tool restore as a default internal pre-command ? |
I was able to reproduce this issue as well. Maybe we could just run |
CSharpier is broken; I am curious whether anyone else encounters this issue:
CSpell is broken when importing dictionaries that aren't bundled:
Our
cspell.config.yaml
contains:Our
.mega-linter.yaml
contains:In our Yarn TypeScript projects, there is one error per file of the following form:
Our
tsconfig.json
contains:Our
package.json
contains:Our
.eslintrc.yaml
is:Originally posted by @Kurt-von-Laven in #1877 (comment)
The text was updated successfully, but these errors were encountered: