Repository navigation
Allow users to supply a custom SDK and source-built artifacts - #100
Merged
Merged
Conversation
Member
Author
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
dseefeld
reviewed
Feb 3, 2020
| cp -a "${CUSTOM_SDK_DIR}" $__scriptpath/.dotnet | ||
| sdk_version="$(basename "$(find "${CUSTOM_SDK_DIR}/sdk" -maxdepth 1 -type d -printf "%p\n" | sort -rn | head -1)")" | ||
| echo "Found SDK version $sdk_version in ${CUSTOM_SDK_DIR}" | ||
| jq ".tools.dotnet = \"$sdk_version\"" global.json > global.json.tmp && mv global.json.tmp global.json |
Contributor
There was a problem hiding this comment.
I don't think the CI images that we use have jq installed on them. Can you use sed here?
Member
Author
There was a problem hiding this comment.
I will give it a shot. But it wont be as reliable or robust as parsing json using something that understands json. Is a scripting language like perl or python available in the CI images?
Member
There was a problem hiding this comment.
There's some discussion about changing to something else that actually understands json at dotnet/arcade#2510, but in core infra that we want to work when bringing up new platforms, depending on stuff we may not need to is a very hard sell.
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This change tries to implement something analogous to dotnet/source-build#1455 for source-build-reference-packages. With this change, I can build source-build-reference-packages completely offline on linux-x64 against a source-built SDK by running: ./build.sh --with-sdk /usr/lib64/dotnet \ --with-packages /usr/lib64/dotnet/source-built-artifacts/*.tar.gz
omajid
force-pushed
the
provide-local-bits
branch
from
February 4, 2020 18:12
14ce71b to
93e4ef4
Compare
adaggarwal
approved these changes
Feb 4, 2020
Contributor
|
@omajid ready to merge? |
Member
Author
|
@dseefeld Yes, looks good on my end. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change tries to implement something analogous to dotnet/source-build#1455 for source-build-reference-packages.
With this change, I can build source-build-reference-packages completely offline on linux-x64 against a source-built SDK by running:
This adds a dependency on thejqtool for editing json.