Suhail98 opened a new pull request, #6832:
URL: https://github.com/apache/camel-k/pull/6832

   Fixes #6829
   
   `kamel run --dev` and `--sync` were deprecated in v2.9.0 and printed a 
removal notice on every use. This removes them, so `kamel run` no longer 
carries a file-watching rebuild loop that nothing else in the CLI depends on.
   
   ## What is removed
   
   - The `--dev` and `--sync` flags and the `Dev` / `Sync` fields on 
`runCmdOptions`.
   - The `--dev` + `-o/--output` mutual-exclusion check and the "Dev and Sync 
properties are deprecated" notice in `validate`.
   - In `run`: the SIGTERM handler that deleted the Integration on Ctrl-C, and 
the `o.Dev` / `o.Sync` arms of the `--logs` and `--wait` conditions.
   - `syncIntegration`, plus what only it used: `filterFileLocation` 
(`run_support.go`), the `pkg/util/sync` package, and `DeleteIntegration` 
(`pkg/cmd/util.go`). The e2e suite has its own `DeleteIntegrations` in 
`e2e/support`, so nothing else calls it.
   - The unit tests covering the two flags, and `TestFilterFileLocation`.
   
   `--logs` and `--wait` behave exactly as before: the two `if o.Logs` branches 
left after the `o.Dev` arms were dropped are merged into one, which is the same 
sequence of calls in the same order.
   
   No deprecation shim is added — Cobra already answers `--dev` with `unknown 
flag: --dev`, matching how #6816 left the removed subcommands. Following your 
reviews on #6807 and #6816, there is also no test asserting the flags are gone.
   
   The only mention left in `docs/` was a passing "_dev mode_" aside in 
`configuration/dependencies.adoc`; it is reworded rather than deleted, since 
the point it makes about automatic dependency resolution still holds.
   
   ## Testing
   
   `go build ./pkg/... ./cmd/...`, `go vet ./pkg/cmd/... ./pkg/util/...` and 
`gofmt -l` are clean, and `go test ./pkg/cmd/...` shows the same 10 
pre-existing Windows-only path/file-lock failures before and after the change. 
Built `./cmd/kamel` and confirmed `--dev` and `--sync` are gone from `run 
--help` and now report `unknown flag`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to