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

shape version specified only once #1537

Merged
merged 3 commits into from
Sep 27, 2024
Merged

Conversation

giacomociti
Copy link
Contributor

is it a step in the right direction? I'm not sure the added complexity is worth it

Copy link

changeset-bot bot commented Sep 26, 2024

⚠️ No Changeset found

Latest commit: 805f370

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

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.60%. Comparing base (e63ee83) to head (805f370).
Report is 4 commits behind head on improve-cube-validation.

Additional details and impacted files
@@                     Coverage Diff                     @@
##           improve-cube-validation    #1537      +/-   ##
===========================================================
- Coverage                    74.68%   73.60%   -1.08%     
===========================================================
  Files                          219      220       +1     
  Lines                        14927    14947      +20     
  Branches                       846      850       +4     
===========================================================
- Hits                         11148    11002     -146     
- Misses                        3776     3936     +160     
- Partials                         3        9       +6     
Flag Coverage Δ
73.49% <100.00%> (-1.18%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@tpluscode tpluscode left a comment

Choose a reason for hiding this comment

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

Yea, I think it's a good direction

cli/lib/commands/publish.ts Outdated Show resolved Hide resolved
cli/lib/replace.ts Outdated Show resolved Hide resolved
cli/lib/replace.ts Outdated Show resolved Hide resolved
cli/lib/replace.ts Outdated Show resolved Hide resolved
const prefix = 'https://cube.link/latest/'
const replacement = `https://cube.link/${version}/`
return through2.obj(function (quad: Quad, _, done) {
if (quad.predicate.value === 'https://code.described.at/imports' && quad.object.value.startsWith(prefix)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (quad.predicate.value === 'https://code.described.at/imports' && quad.object.value.startsWith(prefix)) {
if (quad.predicate.equals(env.ns.code.imports && quad.object.value.startsWith(prefix)) {

Of course you'd need to get env from step context

code:implementedBy
[
a code:EcmaScript ;
code:link <file:../lib/replace#default>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the step deserves a more descriptive name

@giacomociti giacomociti merged commit cd26d53 into improve-cube-validation Sep 27, 2024
18 of 19 checks passed
@giacomociti giacomociti deleted the shape-version branch September 27, 2024 09:04
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