```bzl def _my_ext_impl(mctx): do_something(mctx.read(Label("//:abc.txt"))) my_ext = module_extension(_my_ext_impl) ``` If `//:abc.txt` changes, `my_ext` should be re-run.