We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using a multi-line string in Cross.toml's pre-build field causes $CROSS_DEB_ARCH to not be properly replaced with the current architecture.
Cross.toml
pre-build
$CROSS_DEB_ARCH
armv7-unknown-linux-gnueabihf
cross 0.2.5
Here are two failing configurations:
[build] pre-build = [ "dpkg --add-architecture $CROSS_DEB_ARCH", "apt-get update", """apt-get --assume-yes --no-install-recommends install libssl-dev:$CROSS_DEB_ARCH libcairo2-dev:$CROSS_DEB_ARCH """, ]
[build] pre-build = [ "dpkg --add-architecture $CROSS_DEB_ARCH", "apt-get update", """apt-get --assume-yes --no-install-recommends install \ libssl-dev:$CROSS_DEB_ARCH \ libcairo2-dev:$CROSS_DEB_ARCH \ """, ]
Here is an equivalent, working configuration using a simple string:
[build] pre-build = [ "dpkg --add-architecture $CROSS_DEB_ARCH", "apt-get update", "apt-get --assume-yes --no-install-recommends install libssl-dev:$CROSS_DEB_ARCH libcairo2-dev:$CROSS_DEB_ARCH", ]
Expected behavior:
# Functional apt-get --assume-yes --no-install-recommends install libssl-dev:armhf libcairo2-dev:armhf
Current behavior:
# Errors: Unknown architecture apt-get --assume-yes --no-install-recommends install libssl-dev:$CROSS_DEB_ARCH libcairo2-dev:$CROSS_DEB_ARCH
No response
The text was updated successfully, but these errors were encountered:
Interesting, this is how it's put into the Dockerfile
cross/src/docker/shared.rs
Lines 169 to 172 in d8631fe
and I think the problem is a combination of how it's expanded in quotemarks and
Line 180 in d8631fe
will have to investigate
Sorry, something went wrong.
No branches or pull requests
Checklist
Describe your issue
Using a multi-line string in
Cross.toml
'spre-build
field causes$CROSS_DEB_ARCH
to not be properly replaced with the current architecture.What target(s) are you cross-compiling for?
armv7-unknown-linux-gnueabihf
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5
Example
Here are two failing configurations:
Here is an equivalent, working configuration using a simple string:
Expected behavior:
# Functional apt-get --assume-yes --no-install-recommends install libssl-dev:armhf libcairo2-dev:armhf
Current behavior:
Additional information / notes
No response
The text was updated successfully, but these errors were encountered: