这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@MohammadKHC
Copy link
Contributor

Well Android does not support hard linking. but rust does not know that and keeps filling the terminal with this useless warning.
This pr patches only one line from the upstream to suppress it.
Please refer to #4921.
See this image hard-linking

Note: this issue was reported to the upstream for almost 5 years. But unfortunately it seems that no one really cares about it. rust-lang/rust#75997

@TomJo2000 I followed the commit message guidelines this time ;)

Copy link
Member

@TomJo2000 TomJo2000 left a comment

Choose a reason for hiding this comment

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

Just to check.
This only turns off the warning being emitted by the compiler?
It does not mean the compiler will actually try to do hardlinks on Android.

@MohammadKHC
Copy link
Contributor Author

MohammadKHC commented Jun 3, 2025

This only turns off the message.
The compiler by default tries to do hard linking and if it fails it shows this warning and still compile the code successfully.
This does not change that it justs doesn't log the message.

@TomJo2000
Copy link
Member

Just wanted to make sure.

@MohammadKHC
Copy link
Contributor Author

I think that it's alright now. Sorry it's actually my first day working with diffs.

@TomJo2000
Copy link
Member

I think that it's alright now. Sorry it's actually my first day working with diffs.

No worries about that, that's what we have contribution resources and PR reviews for.

@TomJo2000
Copy link
Member

TomJo2000 commented Jun 3, 2025

  • By the way I added another package linter check in,
    enhance(scripts/lint-packages): ensure version changes  #24948 based on your earlier PR.
    That way missing version bumps get caught before the package build instead of only getting caught in the upload test at the very end of the CI pipeline.
    (Coincidentally the way I'm checking for version bumps in that check is using diffs.)

@MohammadKHC
Copy link
Contributor Author

Thank you. It seems like being dump helps somehow haha

@TomJo2000
Copy link
Member

I'd say it made me aware of a gap in the linter coverage that should be addressed.

@MohammadKHC
Copy link
Contributor Author

Oops (again) because of this change unused errors are triggered will fix that.

@MohammadKHC MohammadKHC force-pushed the master branch 3 times, most recently from cdd09ab to be2b632 Compare June 3, 2025 23:53
@MohammadKHC
Copy link
Contributor Author

Well the third time is the charm. i am pretty sure that it's fixed now..

@MohammadKHC
Copy link
Contributor Author

This pr patches only one line from the upstream to suppress it.

Famous last words. LOL
Fr i really think this is fixed now.

@MohammadKHC
Copy link
Contributor Author

The CI succeeded 🎉

@TomJo2000
Copy link
Member

I'd like to get @truboxl or @licy183 to sign off on this before merging this.
Just to make sure this doesn't have any unintended side effects.

Copy link
Member

@licy183 licy183 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your contribution!

@TomJo2000 TomJo2000 merged commit 83cbedc into termux:master Jun 4, 2025
9 checks passed
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