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

Bootstrapping previously source-built packages fails #2599

Closed
dseefeld opened this issue Nov 1, 2021 · 1 comment
Closed

Bootstrapping previously source-built packages fails #2599

dseefeld opened this issue Nov 1, 2021 · 1 comment
Assignees
Labels
area-build Improvements in source-build's own build process

Comments

@dseefeld
Copy link
Contributor

dseefeld commented Nov 1, 2021

Running prep.sh --bootstrap fails on 6.0 build.

>./prep.sh --bootstrap
  Downloading source-built artifacts from https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdotnetcli.azureedge.net%2Fsource-built-artifacts%2Fassets%2FPrivate.SourceBuilt.Artifacts.0&data=04%7C01%7Cdan.seefeldt%40microsoft.com%7Cc9aa5a09a4a5413debc208d99a88cbad%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637710736280771447%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wDkDCeKibEAmjbUddhuJg%2Br2yF%2FH%2F4N3D5n7p2vbESc%3D&reserved=0.
1.0-6.0.100-bootstrap.29.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 3936M  100 3936M    0     0  8753k      0  0:07:40  0:07:40 --:--:-- 8476k
  Installing dotnet...
Downloading 'https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdotnet.microsoft.com%2Fdownload%2Fdotnet%2Fscripts%2Fv1%2Fdotnet-install.sh&data=04%7C01%7Cdan.seefeldt%40microsoft.com%7Cc9aa5a09a4a5413debc208d99a88cbad%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637710736280781404%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=dxdRq%2BXmLeyGxyEkhsj%2B68ftuI2nNQvzhMEL7NTxxqw%3D&reserved=0'
dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where:
dotnet-install: - The SDK needs to be installed without user interaction and without admin rights.
dotnet-install: - The SDK installation doesn't need to persist across multiple CI runs.
dotnet-install: To set up a development environment or to run apps, 
use installers rather than this script. Visit 
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdot
net.microso%2F&data=04%7C01%7Cdan.seefeldt%40microsoft.com%7Cc9aa
5a09a4a5413debc208d99a88cbad%7C72f988bf86f141af91ab2d7cd011db47%7C1%7
C0%7C637710736280781404%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiL
CJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BxcpXZ
gKa7s%2Fm1SYgR11hm8aPufHiOgx2yDA1ears8g%3D&reserved=0
ft.com/download to get the installer.
>>
dotnet-install: Downloading primary link 
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdot
netcli.azureedge.net%2Fdotnet%2FSdk%2F6.0.100-rc.2.21426.20%2Fdotnet-
sdk-6.0.100-rc.2.21426.20-linux-x64.tar.gz&data=04%7C01%7Cdan.see
feldt%40microsoft.com%7Cc9aa5a09a4a5413debc208d99a88cbad%7C72f988bf86
f141af91ab2d7cd011db47%7C1%7C0%7C637710736280781404%7CUnknown%7CTWFpb
GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn
0%3D%7C3000&sdata=C%2BlqlWvMXuYfsiJTbaS4MENr9JLvGoOSmL1Pp3Iy750%3
D&reserved=0
dotnet-install: Extracting zip from 
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdot
netcli.azureedge.net%2Fdotnet%2FSdk%2F6.0.100-rc.2.21426.20%2Fdotnet-
sdk-6.0.100-rc.2.21426.20-linux-x64.tar.gz&data=04%7C01%7Cdan.see
feldt%40microsoft.com%7Cc9aa5a09a4a5413debc208d99a88cbad%7C72f988bf86
f141af91ab2d7cd011db47%7C1%7C0%7C637710736280781404%7CUnknown%7CTWFpb
GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn
0%3D%7C3000&sdata=C%2BlqlWvMXuYfsiJTbaS4MENr9JLvGoOSmL1Pp3Iy750%3
D&reserved=0
dotnet-install: Adding to current process PATH: `/home/omajid/rh-git/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/.dotnet`. Note: This change will be visible only when sourcing script.
dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fdotnet%2Fcore%2Finstall&data=04%7C01%7Cdan.seefeldt%40microsoft.com%7Cc9aa5a09a4a5413debc208d99a88cbad%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637710736280781404%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=IHo86gKNbAx9AgLQUjOpBAiBzA6%2B%2FSXtg7YNmGEfhOE%3D&reserved=0, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.
  Building bootstrap previously source-built in /tmp/tmp.y8Kvrjjdq0
  Retrieving PackageVersions.props from existing archive /home/omajid/rh-git/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/.dotnet/sdk/6.0.100-rc.2.21426.20/MSBuild.dll -nologo -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,/home/omajid/rh-git/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/.dotnet/sdk/6.0.100-rc.2.21426.20/dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,/home/omajid/rh-git/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/.dotnet/sdk/6.0.100-rc.2.21426.20/dotnet.dll -maxcpucount -property:ArchiveDir=/home/omajid/rh-git/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/packages/archive/ -target:Restore -verbosity:m /bl /tmp/tmp.y8Kvrjjdq0/buildBootstrapPreviouslySB.csproj
  Determining projects to restore...
/tmp/tmp.y8Kvrjjdq0/buildBootstrapPreviouslySB.csproj : warning NU1603: buildBootstrapPreviouslySB depends on Microsoft.NET.HostModel (>= 6.0.0-rtm.21521.1) but Microsoft.NET.HostModel 6.0.0-rtm.21521.1 was not found. An approximate best match of Microsoft.NET.HostModel 6.0.0-rtm.21521.4 was resolved.
  Restored /tmp/tmp.y8Kvrjjdq0/buildBootstrapPreviouslySB.csproj (in 4.65 sec).
    Unpacking existing tarball from /home/omajid/rh-git/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/packages/archive/Private.SourceBuilt.Artifacts.0.1.0-6.0.100-bootstrap.29.tar.gz
    Deleting existing tarball: /home/omajid/rh-git/dotnet6.0/dotnet-9e8b04bbff820c93c142f99a507a46b976f5c14c-x64-bootstrap/packages/archive/Private.SourceBuilt.Artifacts.0.1.0-6.0.100-bootstrap.29.tar.gz
    Replacing restored files in 
/tmp/tmp.y8Kvrjjdq0/artifacts/unpacked/
/tmp/tmp.y8Kvrjjdq0/buildBootstrapPreviouslySB.csproj(52,5): error MSB3030: Could not copy the file "/tmp/tmp.y8Kvrjjdq0/artifacts/restoredPkgs/microsoft.net.hostmodel.6.0.0-rtm.21521.1.nupkg" because it was not found.

@dseefeld dseefeld added the area-build Improvements in source-build's own build process label Nov 1, 2021
@omajid
Copy link
Member

omajid commented Nov 1, 2021

I worked around this by manually patching up the versions in PackageVersions.props:

tar xf ../packages/archive/Private.SourceBuilt.Artifacts.*.tar.gz
sed -i -E 's|<MicrosoftNETHostModelPackageVersion>6.0.0-rtm.21521.1</|<MicrosoftNETHostModelPackageVersion>6.0.0-rtm.21521.4</|' PackageVersions.props
sed -i -E 's|<MicrosoftNETHostModelVersion>6.0.0-rtm.21521.1</|<MicrosoftNETHostModelVersion>6.0.0-rtm.21521.4</|' PackageVersions.props
tar czf ../packages/archive/Private.SourceBuilt.Artifacts.*.tar.gz *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-build Improvements in source-build's own build process
Projects
None yet
Development

No branches or pull requests

3 participants