-
Notifications
You must be signed in to change notification settings - Fork 624
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
Broken CONTRIBUTING link for crate cargo-cyclonedx
#8551
Comments
you might want to report this at https://github.com/CycloneDX/cyclonedx-rust-cargo/issues. the project/crate is not under our control. |
I don't know if there is anything we can do about it, but there is a way it's relevant to this repo. |
oh okay, I see... the problem is still on their side though. their readme is pointing to the contributing file in the parent folder. crates.io iirc can handle that but only if cargo generates the scm metadata file, which this crate file does not appear to contain. I guess the crate might have been released from a dirty repository state, causing the metadata to be missing. |
@Turbo87, as you write …
…, can you please specify "crates.io iirc can handle that but only if cargo generates the scm metadata file" concisely. |
an example of what I'm talking about is https://docs.rs/crate/serde/1.0.199/source/.cargo_vcs_info.json. this file is automatically generated by cargo when a crate is published unless there are any uncommitted changes in the git repository. in the serde case it includes the path_in_vcs key, which we use to figure out relative paths within the repository. if you check the cargo-cyclonedx crate you can see that such a file does not exist, so we can't properly generate these links. |
@Turbo87 and @Eh2406, I am a little bit lost here: I created a detailed bug report which describes a valid and undisputed issue. Aside of the question whose fault this is (which was solely posed by @Turbo87), this issue definitely causes a broken link to be embedded at Still, although I know almost nothing about RUST, I would like to understand what is going wrong here. Hence I performed some research to comprehend your (@Turbo87) most recent comment; I would appreciate a brief comment, if this captures correctly what you (@Turbo87) meant: Because there is no Unfortunately there is no call of P.S.: Interestingly the LICENSE link is constructed correctly, even though it seems to be created by the same mechanism of |
… from `cargo publish` call; (really) closes rust-lang/crates.io#8551
… from `cargo publish` call; (really) closes rust-lang/crates.io#8551
yes, either
yep, that is most likely the cause of the problem
the license link is an absolute link in their README, while the contributing link is a relative one. |
… from `cargo publish` call and expand CI step names. This should (really) close rust-lang/crates.io#8551 , see there for details. Signed-off-by: olf <[email protected]>
… from `cargo publish` call and expand CI step names. This should (really) close rust-lang/crates.io#8551 , see there for details. Signed-off-by: olf <[email protected]>
* [deploy_cargo_cyclonedx.yml] Remove `--allow-dirty` option … … from `cargo publish` call and expand CI step names. This should (really) close rust-lang/crates.io#8551 , see there for details. Signed-off-by: olf <[email protected]> * [deploy_cyclonedx_bom.yml] Remove `--allow-dirty` option … … from `cargo publish` call and expand CI step names. This should (really) close rust-lang/crates.io#8551 , see there for details. Signed-off-by: olf <[email protected]> --------- Signed-off-by: olf <[email protected]>
Lastly fixed by CycloneDX/cyclonedx-rust-cargo#724 |
Current Behavior
"CONTRIBUTING" link is broken, because it points to https://github.com/CycloneDX/cyclonedx-rust-cargo/blob/CONTRIBUTING.md
Expected Behavior
The "CONTRIBUTING" link should point at https://github.com/CycloneDX/cyclonedx-rust-cargo/blob/main/CONTRIBUTING.md (note the added, required branch
main
) or even better to (jumping to the ID where the document begins) https://github.com/CycloneDX/cyclonedx-rust-cargo/blob/main/CONTRIBUTING.md#contributingSteps To Reproduce
404
errorEnvironment
Anything else?
Originally I intended to pose a pull request, hence I employed GitHub's code search to determine where the incorrect link is supplied from. To my surprise neither this repository or the
cyclonedx-rust-cargo
seems to contain this link:So this is either a structural (i.e. general) issue or another source is used to obtain this incorrect link.
Note that even searching all of GitHub for this link provides nothing relevant: https://github.com/search?q=https%3A%2F%2Fgithub.com%2FCycloneDX%2Fcyclonedx-rust-cargo%2Fblob%2FCONTRIBUTING.md&type=code
The text was updated successfully, but these errors were encountered: