Thanks! I'll definitely do that in the next tutorial. I'm still trying to figure out the best recording environment for tutorials so this feedback is greatly appreciated
In two situations, you had to run "bazel clean" because output files were not generated as expected. Did you get to the bottom of why this was necessary and how to fix it? It doesn't sound right that expected output files are missing after a "bazel build" command. I suspect that Bazel skipped the build step, because the source file hasn't changed. However, I think it should still run that step if expected output files are missing.
I'm actually still struggling with this. I'm a bit further along on my bazel journey (and I'm hoping I can make a video on my latest findings soon). But there are still a few cases where I just don't understand why the build command doesn't figure out that a rebuild is required. I've been thinking about setting up a few of these scenarios and share them with the experts in the bazel slack community. I'm sure there is just some small thing that I don't understand but an expert would be able to see right away
@@gisli I had something similar, and I think it was just VSCode not catching up quickly enough with fs changes. If you check the actual fs in explorer or just with ls/dir do the files show correctly?
Thanks a-lot! My motivation for making this video was how difficult it was for me to make sense of the official docs when I was trying to learn the basics Glad you found it useful! :D
Yeah, you are right... I only realized this after recording and uploading, and many people have pointed this out :/ My later videos are better in this regard, I'm hoping I can re-record this soon with more readable font and updated for the latest version of bazel
Yes everything works on windows 11 as far as I know. I have a tool that I build using this method that I've been working on and building every day and I haven't had any problems
This video is called "Bazel Tutorial - Ultimate Beginners Guide". I am a beginner. I'm 22 minutes in and honestly, it feels like it's just a stream of conciousness pouring out describing complicated processes that you yourself have figured out with little to no explanation. A frustrating watch.
Ahh very sorry to hear that! The idea was to try and walk through what would make up an end-to-end example, so as a beginner you'll have an overview of what makes up a bazel build and by understanding the foundations, you'd be in a better position to continue learning. Since then I've actually made some more to-the-point TH-cam tutorials on bazel build more recently. I'd recommend checking out this one th-cam.com/video/bhirT014eCE/w-d-xo.html I also have some material that I wrote for people getting started that you might find useful as a beginner. www.gisli.games/understanding-bazel/understanding-bazel-build Best of luck with your journey of learning Bazel build!
Thank you for a very detailed video. I am using it to get started with bazel! I am trying to get python to work and when I copied the lines as instructed into the WORKSPACE file, I got the following errors. Anything that needs to be updated since the production of this video: ERROR: Failed to load Starlark extension '@bazel_skylib//lib:versions.bzl'. Cycle in the workspace file detected. This indicates that a repository is used prior to being defined. The following chain of repository dependencies lead to the missing definition. - @bazel_skylib This could either mean you have to add the '@bazel_skylib' repository with a statement like `http_archive` in your WORKSPACE file (note that transitive dependencies are not added automatically), or move an existing definition earlier in your WORKSPACE file. ERROR: Error computing the main repository mapping: cycles detected during computation of main repo mapping
Thanks for your reply. There is a chance that something has changed since I made the video, especially since it feels like bazel dependency management is moving towards using bzlmod module files instead of having them in the workspace file. I've started using it for my own projects and it works pretty well. The bazel version I'm using day to day is [bazel release 6.2.0rc1] To get it to work I had to create a .bazelrc file next to my workspace file and add the following line: common --experimental_enable_bzlmod Once you've done that you should be able to use the code provided here: github.com/bazelbuild/rules_python#getting-started And then for the PIP dependencies you can check out the example code here: github.com/bazelbuild/rules_python#using-the-package-installation-rules This is pretty much exactly how my project is setup and it works. Let me know if you figure it out! :D
Hi i have corporate training requirements on bazel fundamentals from my client ..... Kindly revert with ur email id.. or on LinkedIn you can reach me Hi for June month we have training requirements on bazel fundamentals.. will you be able to deliver training for my client for 3 days .
Very useful tutorial about Bazel... Thanks for that
Glad it was helpful!
Excellent! This is the video I wish I had found when I first started learning Bazel!
Glad it was helpful!
Thanks for the beginner-friendly intro! I wish you had bigger fonts.
Ahh yes I agree with the font size!
I'm still new to making videos so I'm still finding the perfect settings. Will keep in mind for future videos!
bravo, amazing tutorial!
Thanks! appreciate it 🔥
Very nice tutorial, thank you for it. But please use some proper (bigger) fonts for presentation.
Thanks! I'll definitely do that in the next tutorial. I'm still trying to figure out the best recording environment for tutorials so this feedback is greatly appreciated
In two situations, you had to run "bazel clean" because output files were not generated as expected. Did you get to the bottom of why this was necessary and how to fix it? It doesn't sound right that expected output files are missing after a "bazel build" command. I suspect that Bazel skipped the build step, because the source file hasn't changed. However, I think it should still run that step if expected output files are missing.
I'm actually still struggling with this. I'm a bit further along on my bazel journey (and I'm hoping I can make a video on my latest findings soon). But there are still a few cases where I just don't understand why the build command doesn't figure out that a rebuild is required.
I've been thinking about setting up a few of these scenarios and share them with the experts in the bazel slack community. I'm sure there is just some small thing that I don't understand but an expert would be able to see right away
@@gisli I had something similar, and I think it was just VSCode not catching up quickly enough with fs changes. If you check the actual fs in explorer or just with ls/dir do the files show correctly?
this is a gem. The Bazel official doc is really bad compared to this.
Thanks a-lot! My motivation for making this video was how difficult it was for me to make sense of the official docs when I was trying to learn the basics
Glad you found it useful! :D
@@gisli you are not alone! thanks very much!
@@gisli NV❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤🎉🎉
sounds interesting but I can't read anything on the screen
Yeah, you are right... I only realized this after recording and uploading, and many people have pointed this out :/ My later videos are better in this regard, I'm hoping I can re-record this soon with more readable font and updated for the latest version of bazel
@@gisli if you can that would be great.. I'm using bazel (blaze) inside google but your video was a great starter.
a video on '"concepts" would be great.. more a whiteboard session.
Does it support for windows 11?
Yes everything works on windows 11 as far as I know. I have a tool that I build using this method that I've been working on and building every day and I haven't had any problems
Text size is too small
Thanks! I agree, will keep in in mind in the future
It's a colon, not a semi-colon.
Thanks for pointing it out! a bit of a not-a-native-english-speaker mixup :p will try to make it correct in the future!
Such minuscule fonts,
Sorry about that! this was one of my first videos and I didn't pay close enough attention to this
This video is called "Bazel Tutorial - Ultimate Beginners Guide". I am a beginner. I'm 22 minutes in and honestly, it feels like it's just a stream of conciousness pouring out describing complicated processes that you yourself have figured out with little to no explanation.
A frustrating watch.
Ahh very sorry to hear that! The idea was to try and walk through what would make up an end-to-end example, so as a beginner you'll have an overview of what makes up a bazel build and by understanding the foundations, you'd be in a better position to continue learning.
Since then I've actually made some more to-the-point TH-cam tutorials on bazel build more recently. I'd recommend checking out this one
th-cam.com/video/bhirT014eCE/w-d-xo.html
I also have some material that I wrote for people getting started that you might find useful as a beginner.
www.gisli.games/understanding-bazel/understanding-bazel-build
Best of luck with your journey of learning Bazel build!
@@gisli More descriptions of background and "why" would help.
Thank you for a very detailed video. I am using it to get started with bazel!
I am trying to get python to work and when I copied the lines as instructed into the WORKSPACE file, I got the following errors. Anything that needs to be updated since the production of this video:
ERROR: Failed to load Starlark extension '@bazel_skylib//lib:versions.bzl'.
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.
- @bazel_skylib
This could either mean you have to add the '@bazel_skylib' repository with a statement like `http_archive` in your WORKSPACE file (note that transitive dependencies are not added automatically), or move an existing definition earlier in your WORKSPACE file.
ERROR: Error computing the main repository mapping: cycles detected during computation of main repo mapping
Thanks for your reply. There is a chance that something has changed since I made the video, especially since it feels like bazel dependency management is moving towards using bzlmod module files instead of having them in the workspace file. I've started using it for my own projects and it works pretty well.
The bazel version I'm using day to day is [bazel release 6.2.0rc1]
To get it to work I had to create a .bazelrc file next to my workspace file and add the following line:
common --experimental_enable_bzlmod
Once you've done that you should be able to use the code provided here:
github.com/bazelbuild/rules_python#getting-started
And then for the PIP dependencies you can check out the example code here:
github.com/bazelbuild/rules_python#using-the-package-installation-rules
This is pretty much exactly how my project is setup and it works.
Let me know if you figure it out! :D
Hi i have corporate training requirements on bazel fundamentals from my client ..... Kindly revert with ur email id.. or on LinkedIn you can reach me Hi for June month we have training requirements on bazel fundamentals.. will you be able to deliver training for my client for 3 days .
Hi!
Thanks for reaching out! I would love to have a conversation about this
Here is my linkedIn: www.linkedin.com/in/gislikonradsson/