-
Notifications
You must be signed in to change notification settings - Fork 299
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
CUE silently ignores undefined tool builtins #1581
Comments
This is more generally about imported packages still being open. @mpvl mentioned that there probably is not a good reason for this, but it remains an open issue. (which I cannot find a.t.m.) That is to say this error / issue happens with regular CUE files / packages as well. |
Probably dup of #629 |
It is indeed related to #629 , but in this case it should indeed still give an "incomplete" error, as the error is not coalesced away by a disjunction. |
Still appears to reproduce as of 12908b3. |
Currently if an identifier doesn't exist within a _tool.cue file, it's ignored and no error is thrown. This updates the logic in the flow controller to check and return errors from task values during initialization. Fixes #1581. Change-Id: Iaf1a6262b7f44b07525b9e56079b804047dada9d Signed-off-by: Nick Figgins <figginsn@gmail.com>
Currently if an identifier doesn't exist within a _tool.cue file, it's ignored and no error is thrown. This updates the logic in the flow controller to check and return errors from task values during initialization. Fixes #1581. Change-Id: Iaf1a6262b7f44b07525b9e56079b804047dada9d Signed-off-by: Nick Figgins <figginsn@gmail.com>
Currently if an identifier doesn't exist within a _tool.cue file, it's ignored and no error is thrown. This updates the logic in the flow controller to check and return errors from task values during initialization. Fixes #1581. Change-Id: Iaf1a6262b7f44b07525b9e56079b804047dada9d Signed-off-by: Nick Figgins <figginsn@gmail.com>
@nickfiggins thanks for the fix! It's already paid for itself - it spotted a bug in our release script :) https://review.gerrithub.io/c/cue-lang/cue/+/1177345 |
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and updates the `issue2517` test case so that it illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and updates the `issue2517` test case so that it illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and updates the `issue2517` test case so that it illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and updates the `issue2517` test case so that it illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. For #2965. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and adds a new test case (very similar to the test case for #2517) that illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. For #2965. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and adds a new test case (very similar to the test case for #2517) that illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. For #2965. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1185281 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@gmail.com> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
This change updates the task controller to return errors from tasks which are classified as permanent. It also updates the logic in evaluator to classify errors as permanent one stage earlier in the evaluation progress in some cases, to align with the classification elsewhere. Fixes #1581. Signed-off-by: Nick Figgins <figginsn@gmail.com> Change-Id: I7fe0b362bb1b27db7226bdda9698b0d6e6cf08ae
This change updates the task controller to return errors from tasks which are classified as permanent. It also updates the logic in evaluator to classify errors as permanent one stage earlier in the evaluation progress in some cases, to align with the classification elsewhere. Fixes #1581. Signed-off-by: Nick Figgins <figginsn@gmail.com> Change-Id: I7fe0b362bb1b27db7226bdda9698b0d6e6cf08ae
This change updates the task controller to return errors from tasks which are classified as permanent. It also updates the logic in evaluator to classify errors as permanent one stage earlier in the evaluation progress in some cases, to align with the classification elsewhere. Fixes #1581. Signed-off-by: Nick Figgins <figginsn@gmail.com> Change-Id: I7fe0b362bb1b27db7226bdda9698b0d6e6cf08ae
@rogpeppe reverted the fix for this issue in https://review.gerrithub.io/c/cue-lang/cue/+/1185281, so we need to reopen this issue now to track a second and better fix. @nickfiggins already marked his new CL (https://review.gerrithub.io/c/cue-lang/cue/+/1185458) as a "fixes" of this issue, so that's already the way we want it. |
Previously, all errors from tasks were returned which led to inappropriate errors when encountering an incomplete value that wasn't a part of a task. Due to this issue, the previous fix for #1581 was reverted. This change updates the task controller to return errors again, however, we now only return errors that are classified as permanent to prevent inappropriate errors. Fixes #1581. Signed-off-by: Nick Figgins <figginsn@gmail.com> Change-Id: I13de67b2a71fd4f7dab027cc3f84e4fc6ff0b077
Previously, all errors from tasks were returned which led to inappropriate errors when encountering an incomplete value that wasn't a part of a task. Due to this issue, the previous fix for #1581 was reverted. This change updates the task controller to return errors again, however, we now only return errors that are classified as permanent to prevent inappropriate errors. Fixes #1581. Signed-off-by: Nick Figgins <figginsn@gmail.com> Change-Id: I30f1b04e3d9c585b47a543f0accefd042da4cd7d
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and adds a new test case (very similar to the test case for #2517) that illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. For #2965. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1185281 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@gmail.com> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> (cherry picked from commit ea385fd)
This reverts commit 9ef35eb but keeps the `cmd_undefined` test case and adds a new test case (very similar to the test case for #2517) that illustrates the way that the reverted commit fails. That commit introduced a regression that caused existing tools/flow uses to fail. See https://cuelang.org/issue/2965. A subsequent CL will apply a different fix for #1581. For #2965. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I322ac3b269bc79a541c15001a166160ad9191267 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1185281 Reviewed-by: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: CUEcueckoo <cueckoo@gmail.com> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> (cherry picked from commit ea385fd) Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1190978 Reviewed-by: Paul Jolly <paul@myitcv.io> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
v0.4.2 is the latest release.
What did you do?
What did you expect to see?
An error
What did you see instead?
The text was updated successfully, but these errors were encountered: