Comments (5)
Yeah, that sounds like the right thing to do. Which build defs are you experiencing this with? There are a number of places where we patch things in Please.
from please.
I agree, we shouldn't be hanging on interactive input like this. Do you know what these flags do? I think we essentially want the default behavior (i.e. don't automatically reverse it for us) but when it detects this case, it should just error. From this description here, I assume -t
would have applied this patch, a bit like if you passed -R
:
-t --batch Ask no questions; skip bad-Prereq patches; assume reversed.
-f --force Like -t, but ignore bad-Prereq patches, and assume unreversed.
From a UX perspective, having the output updated to be "Patching" vs "Fetching" would've also been a sufficient clue.
This is fairly easy to do but has a performance hit as patches are often used to patch large repos. We'd have to move patching to it's own target so it can have a different building description. This means we have to copy the files into a temp directory, and adding more intermediate targets means we have to repeat this step for each target.
from please.
I'd use -f
. If the patch fails to apply, it should be an error (a reversed patch shouldn't magically apply because this is a form of non-determinism). In my case, the -f
would've caught this error and it would've been obvious there was a patch problem, not something blocked waiting for input on stdin.
from please.
go_module()
:
go_module(
name = "tengo",
install = [
"",
"parser",
"stdlib",
"stdlib/json",
"token",
],
module = "github.com/d5/tengo/v2",
patch = "d5-tengo-recover.patch",
version = "v2.16.1",
)
d5/tengo#439, for reference
from please.
Related Issues (20)
- visibility changes the cache hash HOT 1
- Get parser to provide line number and source file etc. with errors like "Non-iterable type %s; must be a list" HOT 2
- github_repo will fail confusingly if the given revision downloads a file with a different prefix. HOT 3
- Dependency paths on targets that generate subrepos aren't surfaced
- Subrepositories and plugin settings inherited from root HOT 3
- sh_cmd does not inject provenance into generated shell script HOT 4
- `isinstance` doesn't know about the `range` type
- lsp_test fails ocassionally on AlpineLinux CI HOT 1
- How do I update the ./pleasew? HOT 1
- Re-enable //test/proto_plugin:proto_rules_test
- Bug in codelab - wrong port
- Crash on tab completion
- Target not found from subrepo
- Support instantiation_stack when querying HOT 1
- Panic / segfault when using query command with --arch option that doesn't match the platform
- Intermediate build results (phase A and B) HOT 6
- Tools not found with --shell & remote execution
- .plzconfig key with empty value HOT 4
- review Go analysis.Pass.Module proposal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from please.