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
Add sdh_die helper function--report an error message and exit #24017
Comments
comment:2
Oops--accidentally pulled in some unrelated changes from #22509. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:4
Cleaned up. |
Dependencies: #24014 |
comment:5
This will conflict with #24014, so better to add that as a dependency and make the required changes here to make them compatible. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:8
The
because it means that we have to worry about the portability of the I like your |
Changed dependencies from #24014 to none |
comment:10
Replying to @jdemeyer:
That's fair in general :)
I'm not married to having it here, but I think the end result is nicer-looking error messages almost everywhere.
Oh you're right--I thought i did write docs about that but apparently not. |
comment:12
Replying to @embray:
Fair enough. I give you the benefit of the doubt. It still feels over-engineered to me, but I won't block this ticket because of it. Remember to set this back to needs_review when you are done. |
comment:13
I don't disagree with the "over-engineered" assessment--there's more going on there than is needed for the bare-minimum functionality. But let's try it out for a bit. I think it is a nice little "quality of life" touch. |
comment:14
Concerning
Why this condition? It means that you couldn't do something like
|
comment:15
This could be written something like
though I realize in your example Hmm--I think the original logic was that it was a failsafe of sorts; it would not "die" unless the previous command actually exited with an error. For example, although it's typically used with But maybe sometimes you'd also want to "die" if some command succeeded. So I think ultimately this restriction is not well-justified. I'll remove it. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
In
did you mean
|
comment:18
Replying to @jdemeyer:
Yes, thank you for catching that. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:20
Is there a good place to put miscellaneous tests that aren't for an actual module in the I would like to add a test suite for these functions (in a separate ticket). |
comment:21
Replying to @embray:
Since it's about building Sage, it would better be in |
comment:22
There's not a |
comment:23
Works for me. |
Reviewer: Jeroen Demeyer |
comment:24
FWIW the recent patchbot failure is due to the issue fixed by #24092, though it might be good the make that a dependency of this... |
Dependencies: #24092 |
comment:26
Added #24092 as a dependency in the hopes of getting better patchbot feedback. |
comment:28
I don't think so, but it still makes sense to track doesn't it? (I am also trying to update the trac plugin to better diff branches against their dependencies, but that's a moot point for now...) |
Changed branch from u/embray/build/sdh_die to |
As brought up in #23160, a lot of the
spkg-install
scripts define a helper function like this, so this adds one that they can share.In many cases this won't even be needed because error messaging is already handled in the
sdh_make
helpers and the like. But occasionally it's still useful. This can be used like:much like the
die
command in perl.Depends on #24092
Component: build
Author: Erik Bray
Branch/Commit:
6f7ed49
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/24017
The text was updated successfully, but these errors were encountered: