Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

deps: use custom build of aria-query@5.0.0#95

Merged
sjbarag merged 1 commit intomasterfrom
sjbarag/use-custom-aria-query
Jun 15, 2022
Merged

deps: use custom build of aria-query@5.0.0#95
sjbarag merged 1 commit intomasterfrom
sjbarag/use-custom-aria-query

Conversation

@sjbarag
Copy link
Copy Markdown
Contributor

@sjbarag sjbarag commented Jun 15, 2022

Version 5.0.0 of the aria-query package currently includes files with
spaces in their names [1], but those files aren't used at build- or
run-time. Since this package is always present in a hydrated
cockroach.git clone, a custom version of aria-query [2] can be used with a
yarn "resolutions" entry, i.e.:

{
  "name": "example-package",
  "dependencies": {
    "...": "..."
  },
  "resolutions": {
    "aria-query": "file:../rel/path/to/yarn-vendor/aria-query-5.0.0-no-spaced-files.tgz"
  }
}

Replace the corrupt aria-query build with a custom build that doesn't
include extra files.

[1] A11yance/aria-query#367
[2] https://github.com/cockroachdb/aria-query/releases/tag/v5.0.0-no-extra-files

Version 5.0.0 of the aria-query package currently includes files with
spaces in their names [1], but those files aren't used at build- or
run-time. Since this package is always present in a hydrated
cockroach.git clone, a custom version of aria-query [2] can be used with a
yarn "resolutions" entry, i.e.:

    {
      "name": "example-package",
      "dependencies": {
        "...": "..."
      },
      "resolutions": {
        "aria-query": "file:../rel/path/to/yarn-vendor/aria-query-5.0.0-no-spaced-files.tgz"
      }
    }

Replace the corrupt aria-query build with a custom build that doesn't
include extra files.

[1] A11yance/aria-query#367
[2] https://github.com/cockroachdb/aria-query/releases/tag/v5.0.0-no-extra-files
@sjbarag sjbarag merged commit 1dea01c into master Jun 15, 2022
@sjbarag sjbarag deleted the sjbarag/use-custom-aria-query branch June 15, 2022 21:09
sjbarag added a commit to sjbarag/cockroach that referenced this pull request Jun 15, 2022
Version 5.0.0 of the aria-query package currently includes files with
spaces in their names [1], but those files aren't used at build- or
run-time. Unfortunately, Bazel doesn't support referencing *any* file
with a space in its name -- including transitively. The yarn-vendored
submodule recently received [2]a copy of aria-query without those extra
files [3], but using it requires a custom yarn resolution for all
packages that transitively depend on aria-query. Replace the corrupt
aria-query build with a custom build that doesn't include extra files.

[1] A11yance/aria-query#367
[2] cockroachdb/yarn-vendored#95
[3] https://github.com/cockroachdb/aria-query/releases/tag/v5.0.0-no-extra-files

Release note: None
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request Jun 15, 2022
82961: ui: use custom build of aria-query@5.0.0 (#95) r=rickystewart,maryliag a=sjbarag

Version 5.0.0 of the aria-query package currently includes files with
spaces in their names [1], but those files aren't used at build- or
run-time. Unfortunately, Bazel doesn't support referencing *any* file
with a space in its name -- including transitively. The yarn-vendored
submodule recently received [2]a copy of aria-query without those extra
files [3], but using it requires a custom yarn resolution for all
packages that transitively depend on aria-query. Replace the corrupt
aria-query build with a custom build that doesn't include extra files.

[1] A11yance/aria-query#367
[2] cockroachdb/yarn-vendored#95
[3] https://github.com/cockroachdb/aria-query/releases/tag/v5.0.0-no-extra-files

Release note: None

Co-authored-by: Sean Barag <barag@cockroachlabs.com>
sjbarag added a commit that referenced this pull request Dec 21, 2022
aria-query@5.0.0 included extra files with spaces in their filename,
which caused errors when Bazel interacted with them. To work around
that, we produced a copy of 5.0.0 that removed those files [1]. The
upstream maintainers published version 5.0.1 which includes no other
changes (but no spurious files) [2], so add that to the set of available
dependencies.

[1] 1dea01c (deps: use custom build of aria-query@5.0.0 (#95), 2022-06-15)
[2] A11yance/aria-query#367
sjbarag added a commit that referenced this pull request Dec 21, 2022
aria-query@5.0.0 included extra files with spaces in their filename,
which caused errors when Bazel interacted with them. To work around
that, we produced a copy of 5.0.0 that removed those files [1]. The
upstream maintainers published version 5.0.1 which includes no other
changes (but no spurious files) [2], so add that to the set of available
dependencies.

[1] 1dea01c (deps: use custom build of aria-query@5.0.0 (#95), 2022-06-15)
[2] A11yance/aria-query#367
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant