Skip to content

Remove all leftovers of pinned-dependencies handling #7686

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

Merged
merged 5 commits into from
Jul 22, 2025

Conversation

cknitt
Copy link
Member

@cknitt cknitt commented Jul 20, 2025

pinned-dependencies have not really have any effect in bsb for some time.
Therefore I removed all occurrences of pinned dependencies from the codebase.

In rewatch, replaced is_pinned_dep and is_pinned_dep || is_local_dep with is_local_dep everywhere.

@cknitt cknitt force-pushed the remove-pinned-dependencies branch from c6d90d4 to 4e950ff Compare July 20, 2025 16:40
Copy link

pkg-pr-new bot commented Jul 20, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7686

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7686

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7686

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7686

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7686

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7686

commit: 99cc34b

@cknitt cknitt requested review from zth and jfrolich July 20, 2025 16:55
@cknitt cknitt force-pushed the remove-pinned-dependencies branch from 4e950ff to 127fd6a Compare July 21, 2025 13:47
Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

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

This looks good to me, but I'm probably not the best to review.

@cknitt cknitt requested a review from Bushuo July 22, 2025 10:14
source_file.implementation.parse_state = ParseState::Warning;
source_file.implementation.parse_dirty = true;
logs::append(package, &stderr_warnings);
stderr.push_str(&stderr_warnings);
}
Ok((_path, Some(_))) | Ok((_path, None)) => {
// If we do have stderr_warnings here, the file is not a pinned
// dependency (so some external dep). We can ignore those
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, that's where the warnings got swallowed previously.

Copy link
Collaborator

@Bushuo Bushuo left a comment

Choose a reason for hiding this comment

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

Looks good to me on the rewatch side

@Bushuo
Copy link
Collaborator

Bushuo commented Jul 22, 2025

@cknitt The pinned-dependencies in rewatch/testrepo/bsconfig.json are remaining.

@cknitt
Copy link
Member Author

cknitt commented Jul 22, 2025

@Bushuo Thanks! Updated.

@cknitt cknitt force-pushed the remove-pinned-dependencies branch from 426ac3b to 99cc34b Compare July 22, 2025 13:42
@cknitt cknitt merged commit 76f9e00 into master Jul 22, 2025
27 checks passed
@cknitt cknitt deleted the remove-pinned-dependencies branch July 22, 2025 14:12
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.

3 participants