You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug ibazel does not appear to support finding the workspace root of a project with just a MODULE.bazel file (e.g. no WORKSPACE or WORKSPACE.bazel). As far as I can tell this is a valid repo structure for bazel 7.
Reproduction instructions klandergren/ibazel-no-workspace-file shows a minimal go project that works using bazel 7 but does not work with ibazel Version 0.24.0.
iBazel [6:27PM]: Querying for files to watch...iBazel [6:27PM]: Error finding workspace: ibazel was not invoked from within a workspaceiBazel [6:27PM]: Error querying for source files: ibazel was not invoked from within a workspaceiBazel [6:27PM]: Error finding workspace: ibazel was not invoked from within a workspaceiBazel [6:27PM]: Error querying for source files: ibazel was not invoked from within a workspaceiBazel [6:27PM]: Running //hello:helloComputing main repo mapping:Loading:Loading: 0 packages loadedAnalyzing: target //hello:hello (0 packages loaded, 0 targets configured)INFO: Analyzed target //hello:hello (0 packages loaded, 671 targets configured). checking cached actionsINFO: Found 1 target... checking cached actions checking cached actionsINFO: Elapsed time: 0.373s, Critical Path: 0.00s checking cached actionsINFO: 0 processes. checking cached actionsINFO: Build completed successfully, 0 total actionsINFO: Analyzed target //hello:hello (0 packages loaded, 0 targets configured).INFO: Found 1 target...Target //hello:hello up-to-date: bazel-bin/hello/hello_/helloINFO: Elapsed time: 0.532s, Critical Path: 0.29sINFO: 6 processes: 4 internal, 2 darwin-sandbox.INFO: Build completed successfully, 6 total actionsiBazel [6:27PM]: Starting...iBazel [6:27PM]: Error finding workspace: ibazel was not invoked from within a workspaceKips-MBP:ibazel-no-workspace-file klandergren$ 2024/03/06 18:27:57 hello world
Expected behavior ibazel to find the workspace root via MODULE.bazel
Actual behavior ibazel walks the directory tree and does not find the root
Version:
OS: MacOS 13.6.4
Browser: chrome
ibazel Version: iBazel - Version 0.24.0
Bazel version:
Bazelisk version: development
Build label: 7.0.2
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer
Build time: Thu Jan 25 16:22:05 2024 (1706199725)
Build timestamp: 1706199725
Build timestamp as int: 1706199725
Additional context
I am new to bazel so if I am mistaken re: WORKSPACE/WORKSPACE.bazel no longer required please close this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
ibazel
does not appear to support finding the workspace root of a project with just aMODULE.bazel
file (e.g. noWORKSPACE
orWORKSPACE.bazel
). As far as I can tell this is a valid repo structure for bazel 7.Reproduction instructions
klandergren/ibazel-no-workspace-file shows a minimal go project that works using bazel 7 but does not work with
ibazel
Version 0.24.0.Steps to reproduce the behavior:
git clone https://github.com/klandergren/ibazel-no-workspace-file
ibazel run //hello:hello
Expected behavior
ibazel
to find the workspace root viaMODULE.bazel
Actual behavior
ibazel
walks the directory tree and does not find the rootVersion:
iBazel - Version 0.24.0
Additional context
I am new to bazel so if I am mistaken re:
WORKSPACE
/WORKSPACE.bazel
no longer required please close this issue.The text was updated successfully, but these errors were encountered: