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

DUB: Require most recent compiler / dub, simplify #2160

Merged
merged 2 commits into from
Jun 10, 2021

Conversation

Geod24
Copy link
Collaborator

@Geod24 Geod24 commented Jun 7, 2021

Note that LDC v1.27.0-beta1 has been released so it's not going to stay the most recent version for long.

@Geod24
Copy link
Collaborator Author

Geod24 commented Jun 7, 2021

This allowed me to find #2158 BTW, so an immediate win.

@Geod24
Copy link
Collaborator Author

Geod24 commented Jun 7, 2021

Alpine needs to be updated

@Geod24
Copy link
Collaborator Author

Geod24 commented Jun 7, 2021

@Geod24
Copy link
Collaborator Author

Geod24 commented Jun 7, 2021

Actually what we needed was bosagora/docker-agora-builder#13 since we don't use upstream images (but it doesn't hurt to update them either).

@Geod24
Copy link
Collaborator Author

Geod24 commented Jun 7, 2021

@omerfirmak : I blame you: dlang/dub#2142

@omerfirmak
Copy link
Contributor

@omerfirmak : I blame you: dlang/dub#2142

That is happening a lot these days.

@codecov
Copy link

codecov bot commented Jun 7, 2021

Codecov Report

Merging #2160 (e9d8b8e) into v0.x.x (b728534) will decrease coverage by 0.58%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           v0.x.x    #2160      +/-   ##
==========================================
- Coverage   89.15%   88.56%   -0.59%     
==========================================
  Files         143      142       -1     
  Lines       13809    13722      -87     
==========================================
- Hits        12311    12153     -158     
- Misses       1498     1569      +71     
Flag Coverage Δ
integration 67.79% <ø> (+34.45%) ⬆️
unittests 88.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
source/agora/node/Runner.d 0.00% <0.00%> (-60.00%) ⬇️
source/agora/network/Clock.d 81.25% <0.00%> (-12.50%) ⬇️
source/agora/utils/Log.d 63.10% <0.00%> (-11.66%) ⬇️
source/agora/network/Client.d 81.81% <0.00%> (-10.23%) ⬇️
source/agora/network/Manager.d 74.13% <0.00%> (-5.18%) ⬇️
source/agora/node/BlockStorage.d 83.33% <0.00%> (-4.77%) ⬇️
source/agora/node/FullNode.d 78.30% <0.00%> (-4.25%) ⬇️
source/agora/node/Validator.d 85.82% <0.00%> (-2.99%) ⬇️
source/agora/node/main.d

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b728534...e9d8b8e. Read the comment docs.

Comment on lines +13 to +14
source/scpp/build/*.o
source/scpp/build/*.obj
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also a workaround for the DUB issue.

Since we now pass C++ aggregates by values, we need the latest LDC.
In addition, we rely on recent enhancements to DUB, e.g. for `-preview=in`,
or `mainSourceFile`, and if one uses a recent LDC,
they likely have access to a recent DUB as well.
We used to have this hard-coded list because of DUB issue 1474,
which was part of DUB v1.24.0, so we can now delete this workaround.
@Geod24
Copy link
Collaborator Author

Geod24 commented Jun 10, 2021

💚

Copy link
Contributor

@linked0 linked0 left a comment

Choose a reason for hiding this comment

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

LGTM

@Geod24 Geod24 merged commit b22d1f0 into bosagora:v0.x.x Jun 10, 2021
@Geod24 Geod24 deleted the dub-lib branch June 10, 2021 08:32
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