-
-
Notifications
You must be signed in to change notification settings - Fork 379
Checkout stable repositories into .generated #1889
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
Conversation
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
b3eee6c
to
23d525f
Compare
I'm very much in favor of moving all the downloading to |
CC @CyberShadow @ZombineDev - this is finally green 🎉 |
Some thoughts:
Overall I'm not entirely convinced this is an improvement, as it looks like trading off tidiness with some potential pitfalls.
How would they conflict? Does the installer unpack things to some parent directory of itself? |
Yes the installer installs the dmd into
Yes.
Well but don't you run the
Yes, an alternative would be to have a permanent setting file for the installer, s.t. a custom download path can be specified permanently. If I find time, I might have a look into this, until then I will keep the PR open as a reminder and maybe other arguments pop up ... |
And how would one happen to use have that? Perhaps the installer should use ~/.cache OSLT...
We can do anything we want with DAutoTest, that's not a problem and not what I was talking about. However, it was a surprise for me when we started having .git repositories in DAutoTest, and it might be a surprise to others. |
f5447e0
to
7201242
Compare
Yes, but we still checkout the git repos, it's just that now we clone them into |
Ping @CyberShadow - this is finally passing. Can we move on with this or do you still have concerns?
|
Well, I don't like it purely subjectively - I kind of enjoyed the stable version checkouts being where they were, and sometimes made use of them since they were already there. If other D components were to need stable checkouts, they will now not be reusable. I'm also a little sad about going away from avoiding pointless work - all the redundant cloning is just wasted time and network traffic. So, I'm not sure I can judge this objectively. There is no immediate technical reason not to merge it, but I also don't see an immediate technically-motivated urgency in merging it either. |
7201242
to
bbddac2
Compare
@CyberShadow You can still reuse them by setting them the |
Yes, go ahead and merge it if you agree with the change. |
@@ -152,21 +152,21 @@ DPL_DOCS_PATH=dpl-docs | |||
DPL_DOCS=$(DPL_DOCS_PATH)/dpl-docs | |||
[email protected]:data | |||
TMP?=/tmp | |||
GENERATED=.generated | |||
G=$(GENERATED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we just use G and delete GENERATED?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a strong opinion about this, having it like this allows people to overwrite the more expressive GENERATED
variable and doesn't cost us too much.
Note that I just moved these two lines up, s.t. the variables are in order (i.e. the are defined before used).
If you or someone else has a stronger opinion about this, let me know and then I will make a PR ;-)
bbddac2
to
2969c36
Compare
@wilzbach the build failed downloading dmd 2.072.1 - you need to rebase this PR to restart it. |
@ZombineDev thanks a lot! I realized that I made a small mistake and the repositories are currently checked out into the root folder -> #2016 |
Fixup for #1889: Use $G instead of ../$G merged-on-behalf-of: Petar Kirov <[email protected]>
Fundamentally all of those latest release builds are a mess. We should build /spec, /phobos, and /library for a specific release once (actually with the release), upload it to a server and never touch them again. |
But ensures that our documentation doesn't look too horrible.
Hmm, and I wanted to ask you whether we can build the docs from stable instead of the fixed release, because it often happens that it takes a month for a simple UI fix (typo, Ddoc bug, ...) to reach dlang.org |
My main D directory got spammed with:
Thus, as dlang.org only needs those repositories, it would be very nice to keep things clean and put every into
$(GENERATED)
Also currently the
dmd-$(VERSION)
folders conflict with the archives downloaded by the DLang installer.