-
Notifications
You must be signed in to change notification settings - Fork 1.4k
v2 #1068
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
Conversation
516e171
to
c177590
Compare
@jhheider what's going on with these failrues you think? |
good question. introduced on the last commit to pkgxdev/pkgx.rs. which looked like a simple re-org. |
yeah I guess it’s my fault, happens there too |
nope, looks like it's the build of cargo-taupaulin. |
same version (0.31.4) but maybe an unfrozen dep updated. |
6 minutes ago: https://crates.io/crates/winnow |
a lot of people aren't gonna like that. |
looks like the re-run is gonna work. |
Pull Request Test Coverage Report for Build 12768583963Details
💛 - Coveralls |
067edcc
to
137e974
Compare
native-tls = { version = "0.2", features = ["vendored"] } | ||
# ^^ this is a transitive dependency | ||
# ^^ we vendor OpenSSL ∵ we want to be standalone and just work inside minimal docker images |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you need static ffi
, consider: pkgxdev/pantry@b6e6bd6
Could be more problematic to support. Not sure how far back we can expect glibc support with rust to go. Not sure how to fix that either. Calling it a day for today. |
if you're feeling perverse, i think you can static link musl. but, yes, glibc is the worst thing about linux support. |
Easy solution was to build in |
ah. Well obv. vendoring OpenSSL is not enough. Should be enough to include the root certificate for https://dist.pkgx.sh presumably. No clue how to do that but will figure it out. |
|
Right. |
|
LFGoooooooo! |
.github/Dockerfile
Outdated
@@ -6,7 +6,7 @@ RUN install -m 755 /pkgx/pkgm /usr/local/bin/pkgm | |||
RUN echo 'export PS1="\\[\\033[38;5;63m\\]pkgx\\[\\033[0m\\]\\w $ "' >> /root/.bashrc | |||
|
|||
FROM debian:buster-slim as stage1 | |||
RUN apt-get update && apt --yes install libc-dev libstdc++-8-dev libgcc-8-dev netbase libudev-dev ca-certificates | |||
RUN apt-get update && apt --yes install libc-dev libstdc++-8-dev libgcc-8-dev netbase libudev-dev ca-certificates sudo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come? Trying to keep it minimal. Did I miss somewhere we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was the last failure with v0.1.0. likely fixed in v0.2.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ok, will remove for my own piece of mind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note I want ca-certs gone too (and the rest lol), but that fix was more work for now and wanted some progress.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've been noodling this. embedding certificate info usually isn't a best practice, since it changes with some regularity. but it should be possible. googling suggests:
- create a
Certificate
object in build.rs - serialize it
- provide it as a build env
- deserialize and consume it using
env!()
- use
ClientBuilder
to create the reqwest client.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. some style questions.
4333067
to
520956d
Compare
No description provided.