Skip to content

Fix and re-enable MSI build #1211

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

Merged
merged 6 commits into from
Aug 14, 2017
Merged

Conversation

Boddlnagg
Copy link
Contributor

This supersedes #661, though it does not enable deployment yet.

@Boddlnagg
Copy link
Contributor Author

I want to see if this works on AppVeyor, but there seems to be a problem with AppVeyor right now ...

@Boddlnagg Boddlnagg force-pushed the msi-improvements branch 2 times, most recently from 6af50fb to 34694ac Compare July 21, 2017 12:51
@Boddlnagg
Copy link
Contributor Author

Boddlnagg commented Jul 21, 2017

Looks like this works. I will remove the last two commits as soon as this is reviewed.

@brson @Diggsey I have some more changes for the MSI installer ready, but some questions will need to be discussed in the process as to the general direction of the MSI installer.

@bors
Copy link
Contributor

bors commented Aug 12, 2017

☔ The latest upstream changes (presumably #1230) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

Thanks for this @Boddlnagg and sorry for the delay! It looks like this is just a few fixes here and there, so if you'd like to rebase and remove the temporary commits, I can r+ to land this

@Boddlnagg
Copy link
Contributor Author

@alexcrichton Thanks! I did the rebase.

@@ -5,9 +5,8 @@ environment:
- TARGET: x86_64-pc-windows-msvc
ALLOW_PR: 1
- TARGET: i686-pc-windows-msvc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be removed now that BUILD_MSI is enabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MSI version is nowhere near finished. I want to enable it on CI just so it won't break. Maybe it would make sense to also set ALLOW_PR: 1 for it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, that makes sense and no worries! My only worry is that this'll conflict with the other i686 builder for the dist artifacts being produced. Enabling the MSI installer just builds more artifacts, right? It shouldn't change the existing binaries?

(if so we can probably just gate on the msi build)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No artifacts are being produced for MSI currently, see https://github.com/rust-lang-nursery/rustup.rs/blob/ac5bffad7ba126b2313692c3dfce83ec91cb7fea/ci/prepare-deploy-appveyor.ps1#L9-L12

Changing that situation was part of #661, but I didn't include it here. Will do in another PR.

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks like CI is failing though?

"VS2017"
} else {
panic!("Unknown VS version with compiler path {:?}", path);
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I hadn't seen that function.

@Boddlnagg
Copy link
Contributor Author

Boddlnagg commented Aug 13, 2017

The CI failure is weird: error: failed to parse lock file at: C:\projects\rustup-rs\Cargo.lock. Running with --verbose gives

Caused by:
  package `gcc 0.3.50 (registry+https://github.com/rust-lang/crates.io-index)` is specified as a dependency, but is missing from the package list

Other crates in the same workspace use gcc 0.3.51 and manually changing the version in the lockfile makes the error disappear (I'm adding that to the PR). But I don't really understand what's going on. Is this expected behavior for cargo?

Edit: Ah, I see, it's missing a checksum line for gcc 0.3.50, I guess that's why it didn't work?

@alexcrichton
Copy link
Member

Oh nice! In that case...

@bors: r+

@bors
Copy link
Contributor

bors commented Aug 13, 2017

📌 Commit eaed698 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Aug 13, 2017

⌛ Testing commit eaed698 with merge c4e7616...

bors added a commit that referenced this pull request Aug 13, 2017
Fix and re-enable MSI build

This supersedes #661, though it does not enable deployment yet.
@bors
Copy link
Contributor

bors commented Aug 14, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing c4e7616 to master...

@bors bors merged commit eaed698 into rust-lang:master Aug 14, 2017
@Boddlnagg Boddlnagg deleted the msi-improvements branch August 14, 2017 07:51
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.

4 participants