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

fix(core): allow paths inside the workspace: protocol to start with ./ #1722

Merged
merged 1 commit into from Aug 20, 2020

Conversation

paul-soporan
Copy link
Member

@paul-soporan paul-soporan commented Aug 19, 2020

What's the problem this PR addresses?

Pathnames inside the workspace: protocol weren't allowed to start with ./ (workspace:packages/foo is allowed, while workspace:./packages/foo isn't), which is very unintuitive.

Fixes #1712.

How did you fix it?

I've made it so that we now test the normalized pathname against the relative workspace cwd. I've also added a test.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I have verified that all automated PR checks pass.

@arcanis
Copy link
Member

arcanis commented Aug 20, 2020

Nice tests!

@arcanis arcanis merged commit e5bc305 into master Aug 20, 2020
@arcanis arcanis deleted the paul/fix/normalize-workspace-pathnames branch August 20, 2020 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] "workspace:./path/to/workspace" can not be resolved
2 participants