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: Add support for multiple extensions to Keygen publisher #6234

Conversation

ezekg
Copy link
Contributor

@ezekg ezekg commented Sep 6, 2021

Matching multiple file extensions is tricky, but with a set heuristic, we can do it. I couldn't get the test env running (probably because I'm missing required env vars), but here's a repl I used to test.

image

Closes #6229.

@changeset-bot
Copy link

changeset-bot bot commented Sep 6, 2021

⚠️ No Changeset found

Latest commit: ba14a67

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ezekg ezekg changed the title Add support for multiple extensions to Keygen publisher fix: Add support for multiple extensions to Keygen publisher Sep 6, 2021
@ezekg ezekg force-pushed the fix/keygen-publisher-version-taken-error branch 2 times, most recently from 3e4e839 to d4611b3 Compare September 6, 2021 15:04
@ezekg ezekg force-pushed the fix/keygen-publisher-version-taken-error branch from d4611b3 to 60fec8d Compare September 6, 2021 15:09
@ezekg ezekg marked this pull request as ready for review September 6, 2021 15:25
@ezekg ezekg marked this pull request as draft September 6, 2021 16:24
@ezekg ezekg force-pushed the fix/keygen-publisher-version-taken-error branch 4 times, most recently from 24e1c9e to f4de3d5 Compare September 6, 2021 16:41
@ezekg ezekg force-pushed the fix/keygen-publisher-version-taken-error branch from f4de3d5 to cd44c24 Compare September 6, 2021 16:43
@ezekg ezekg force-pushed the fix/keygen-publisher-version-taken-error branch from 88ccc8e to 9da54bc Compare September 6, 2021 18:54
@ezekg ezekg force-pushed the fix/keygen-publisher-version-taken-error branch from 9da54bc to ba14a67 Compare September 6, 2021 19:00
@ezekg ezekg marked this pull request as ready for review September 7, 2021 13:14
import * as _sanitizeFileName from "sanitize-filename"
import * as path from "path"

export function sanitizeFileName(s: string): string {
Copy link
Contributor Author

@ezekg ezekg Sep 7, 2021

Choose a reason for hiding this comment

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

Worth noting that renaming this file may be a breaking change if anybody is relying on util/sanitizeFileName. I assume it's meant to be internal, but ya know.

@mmaietta
Copy link
Collaborator

mmaietta commented Sep 8, 2021

Many thanks, @ezekg!

@mmaietta mmaietta merged commit 369f1fa into electron-userland:master Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keygen Publisher fails with VERSION_TAKEN for blockmap artifacts
2 participants