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

Fix cargo test --doc on Alpine #1125

Merged

Conversation

jcamiel
Copy link
Collaborator

@jcamiel jcamiel commented Dec 22, 2022

We use .cargo/config.toml to pass the flag -Ctarget-feature=-crt-static (before we set this flag through env variables).

By setting this flag in cargo config file, cargo test --doc is working now on Alpine. Plus, if we checkout the repo on Alpine and just cargo build, the binary produced is valid (instead of having to set RUSTFLAGS=-Ctarget-feature=-crt-static before building).

@jcamiel jcamiel linked an issue Dec 22, 2022 that may be closed by this pull request
@jcamiel jcamiel force-pushed the 1124-cargo-test-doc-failed-on-alpine-distribution branch from eb32ca1 to 5b015da Compare December 22, 2022 11:07
@jcamiel jcamiel force-pushed the 1124-cargo-test-doc-failed-on-alpine-distribution branch 6 times, most recently from 4cfc7a9 to ae93191 Compare December 29, 2022 10:00
@jcamiel jcamiel force-pushed the 1124-cargo-test-doc-failed-on-alpine-distribution branch from ae93191 to 1809da5 Compare December 29, 2022 16:23
@jcamiel jcamiel force-pushed the 1124-cargo-test-doc-failed-on-alpine-distribution branch from 1809da5 to c11c5ed Compare December 30, 2022 10:24
@fabricereix
Copy link
Collaborator

/accept

@hurl-bot
Copy link
Collaborator

hurl-bot commented Jan 2, 2023

🕗 /accept is running, please wait for completion.

@hurl-bot
Copy link
Collaborator

hurl-bot commented Jan 2, 2023

✅ Pull request accepted and closed by fabricereix with fast forward merge..

# List of commits merged from Orange-OpenSource/hurl/1124-cargo-test-doc-failed-on-alpine-distribution branch into Orange-OpenSource/hurl/master branch:

  • c11c5ed Fix cargo test --doc on Alpine

@hurl-bot hurl-bot closed this Jan 2, 2023
@github-actions github-actions bot merged commit c11c5ed into master Jan 2, 2023
@hurl-bot hurl-bot deleted the 1124-cargo-test-doc-failed-on-alpine-distribution branch January 2, 2023 10:52
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.

cargo test --doc failed on Alpine distribution
3 participants