Skip to content

spec: fix errors with file:, gh shorthand - #39

Merged
isaacs merged 9 commits into
mainfrom
isaacs/spec-fix-file-gh-shorthand
May 22, 2024
Merged

isaacs merged 9 commits into
mainfrom
isaacs/spec-fix-file-gh-shorthand

Conversation

@isaacs

@isaacs isaacs commented May 22, 2024

Copy link
Copy Markdown
Contributor

file: specs were assumed to always include //, but this is not the case, resulting in incorrect paths on Windows.

Legacy GitHub shorthand syntax user/project was failing to take into account that it might contain a git selector after the # character.

isaacs added 5 commits May 21, 2024 23:50
`file:` specs were assumed to always include `//`, but this is not the
case, resulting in incorrect paths on Windows.

Legacy GitHub shorthand syntax `user/project` was failing to take into
account that it might contain a git selector after the `#` character.
Comment thread src/tar/test/unpack.ts
@@ -1,4 +1,5 @@
import { lstatSync, readFileSync } from 'fs'
//@ts-ignore

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it just ignoring the next line?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because mutate-fs doesn't have typedefs. Some day I'll rewrite it in TS, but for now it's a steaming pile of any.

@isaacs
isaacs force-pushed the isaacs/spec-fix-file-gh-shorthand branch from bf25fa0 to 05d6a4a Compare May 22, 2024 19:52
@isaacs
isaacs merged commit 05d6a4a into main May 22, 2024
@isaacs
isaacs deleted the isaacs/spec-fix-file-gh-shorthand branch May 23, 2024 15:47

This branch had an error being deployed

1 failed deployment
github-pages — 05d6a4a4 Deployed May 22, 2024 by isaacs
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.

2 participants