-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Make build.cmd with no args build everything #6304
Comments
Maybe |
@Eilon what are your thoughts on this one? Do you want contributors working our repo to be able to run "build.cmd" and have it build everything? I can see this going two ways. Pros:
Cons:
|
Well, I don't speak for all contributors, so I don't know 😄 One way to go about this is that if we don't have any data on any actual problems that are being reported, to leave things as they are. For example:
|
I heard a few of our team members say it was hard to figure out how to build installers. I made a few changes that should make it easier now. And I have a few more planned as a part of targeting pack work. Other than that, most complaints have been about trouble with installing prerequisites like Visual Studio. Implementing this change to build.cmd would probably make that even worse by increasing the prerequisites just to get a successful build.cmd. For what it's worth, as of Friday, PRs now build everything. Windows installers, Debian packages, all CPU architectures, etc. We have never had this kind of coverage in PR checks, so I think this will help us. |
Okie dokie. Another thing I'm also fine with is doing reasonable experiments and evaluating the results. So, great, now it builds everything. Does anyone start complaining or think it's unreasonable in practice? |
I don't think anyone runs full build except people that need to test installers/sharedfx builds. And when you need to test those it's super painful to assemble the pieces. I'm in favour of doing a full build considering we have good support for builds in subfolders. |
Great, this is the type of discussion I want to have! |
Suggestion: Have build.cmd/.sh show a bright warning at the top saying it will build everything. EVERYTHING. But that you can build just a sub-section of the build by going to github.com/FOO (maybe using aka.ms) and running such-and-such. |
See also: #8025 |
@dougbu - can you add more thoughts to this issue about what the lower-level build.cmd's should do? |
This work requires two main changes:
I'm not sure what to do with |
I landed here because Build ASP.NET Core from Source explains how I need to run the installers and configure NuGet to look at the packages folder to "use the result of your build", but there are no runnable installers and the packages folder is almost empty. The earlier sections in the instructions don't mention |
@JunTaoLuo - this seems very related to your current PR for Components. Do we still need this separate issue? |
This is quite separate. Even with my change, we are still only building a subset of our artifacts. Specifically, we will be building C# projects and everything C# projects depend on. We still won't build installers, site extensions, Java artifacts, etc. This issue is tracking the proposal to build everything that's possible on the platform you're on. |
Got it. I'm going to move this to backlog then, as I don't think it's something that we need to do for .NET Core 3 and we're running out of time for that. |
Unassigning myself since this is a backlog item. |
Can this discussion can be revived? I hit that when I attempt to build installer for ASP.NET. |
@kant2002 when we build the installers locally (which is very rare), we follow along with the .azure/pipelines/ci.yml. In particular, local devs don't usually need to build both x64 and x86 assets on Windows, let alone the site extensions or installers. |
@dougbu Can steps for building installers to be put in docs? I can submit PR. I understand that I take unusual path. If documentation update is proper way, does https://github.com/dotnet/aspnetcore/blob/master/docs/BuildFromSource.md proper place for adding that information? |
@kant2002 sure, we'd accept a PR that added another section at the end of docs/BuildFromSource.md. Much appreciated❕ |
From old DoI board:
|
Building installers for me locally now fails due to the Unzip parts in the |
It seems the reason why the installers refuse to build could be because I was not passing in |
Currently, running build.cmd doesn't build everything in this repo. You have to know about special parameters to get the repo build Debian, RPM, and Windows installers.
Proposal: let's make
build.cmd
/.sh
without arguments build everything in the repo. That includes:Tricky bits: this is not trivial because we have some tricky requirements.
The text was updated successfully, but these errors were encountered: