Invalid include local validation
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: 3.47.1
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.68.0
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: "happens on
gitlab.com"
- GitLab version: "happens on
Summary
Local file .gitlab\ci\test-ci.gitlab-ci.yml does not exist! However, the file exists...
Steps to reproduce
- Create dir .gitlab/ci
- Create file .gitlab/ci/test-ci.gitlab-ci.yml
- Add in .gitlab-ci.yml
include:
- local: .gitlab\ci\test-ci.gitlab-ci.yml
- Run "Validate GitLab CI config"
What is the current bug behavior?
Local file .gitlab\ci\test-ci.gitlab-ci.yml does not exist!
What is the expected correct behavior?
GitLab Workflow: Your CI configuration is valid.
Relevant logs and/or screenshots
Possible fixes
https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/blob/main/src/extension.ts#L149
pattern: '**\/*.gitlab-ci*.{yml,yaml}\' },
Maybe. However, I'm not sure and other escaping options should be tried. Now it's not a mask, but a hardcode
Edited by Igor Imangulov

