Conversation
|
Can one of the admins verify this patch? |
BUILD.bazel
Outdated
| load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") | ||
| template_files = glob([ | ||
| "modules/**/*", | ||
| "platforms/**/*", |
There was a problem hiding this comment.
platforms folder does not exist anymore
There was a problem hiding this comment.
Cool. I'm going to remove it here too. Thanks!
| commit = "361556b0d27318d1b8fa42c91a4baa4ab5ea1c58" | ||
| ) | ||
|
|
||
| # http_archive( |
There was a problem hiding this comment.
It's mentioned in the comment above. It's because we need a change from bazel-contrib/rules_go#1393 which is not yet released. Once a release is cut, we can revert back to http_archive retrieval. That's why I kept it commented.
There was a problem hiding this comment.
Once a release is cut, we can revert back to http_archive retrieval.
I've filed openshift/installer#28 with a stab at this.
| "//:linux": ["@terraform_runtime_linux//:terraform"], | ||
| "//:darwin": ["@terraform_runtime_darwin//:terraform"], | ||
| }), | ||
| outs = ["bin/terraform"], |
There was a problem hiding this comment.
terraform_fmt currently relies on this output so would need to be updated
There was a problem hiding this comment.
ok, I'll put it back then 👍
c979919 to
4ec8f08
Compare
BUILD.bazel
Outdated
| ) | ||
| template_files = glob([ | ||
| "modules/**/*", | ||
| "platforms/**/*", |
examples/BUILD.bazel
Outdated
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| exports_files(example_cli_configs) No newline at end of file |
acb3ae2 to
70b7eaa
Compare
|
ok to test |
|
retest this please |
|
When running in mac |
121e07b to
b9093e0
Compare
f264b94 to
0f7b2c4
Compare
|
@squat Got around to amending the README. PTAL. |
|
Good to review. PTAL |
|
lgtm, we probably want to squash the commits |
* only build one platform at a time * copy templates + resources as runtime files on the cli target * remove unused rules and dependencies * source version for tarball from versions.bzl * version the tarball
63ddcbe to
282a3fb
Compare
78a8557 to
15d15e6
Compare
squat
left a comment
There was a problem hiding this comment.
Looks good! One more piece of clean up we need to do is to remove the hand-tailored gazelle generated Bazel files in vendor. These had to be modified by hand to support declarative cross-compilation in Bazel but since we are no longer doing this and instead the tarballs only have binaries for a single platform, we can remove those changes. As it stands they will NOT be regenerated by gazelle because of the special directive in the files. We simple need to find ./installer/vendor/ -name *.BAZEL | xargs rm or the like and then re-run gazelle to regenerate. We can do this in a follow up
|
We need to ensure we coordinate with RA team so they are aware of the new release process requiring one tarball per platform per release |
|
@squat I agree with both points! On the topic of integration with RA, I'd say the release process as we know it no longer applies at this time. We definitely have to convey these changes to RA nonetheless. Sudha wants to meet this week to discuss the path forward, so we'll touch on these changes and others within the installer. |
Catching up with e22e31f (Simplified Bazel build, 2018-04-23, coreos/tectonic-installer#3142). Running 'bazel build tarball' on master actually gets you a tectonic-dev.tar.gz with a root tectonic-dev directory, but I've left that alone for now (maybe it depends on environment variables like cutting releases?). The tarball I built also lacks the darwin/linux subdirectories: $ tree tectonic-dev/installer/ tectonic-dev/installer/ ├── tectonic └── terraform But by stopping at the 'installer' directory I don't have to worry about figuring out how cross-platform builds work now ;).
Catching up with e22e31f (Simplified Bazel build, 2018-04-23, coreos/tectonic-installer#3142). Running 'bazel build tarball' on master actually gets you a tectonic-dev.tar.gz with a root tectonic-dev directory, but I've left that alone for now (maybe it depends on environment variables like cutting releases?). The tarball I built also lacks the darwin/linux subdirectories: $ tree tectonic-dev/installer/ tectonic-dev/installer/ ├── tectonic └── terraform But by stopping at the 'installer' directory I don't have to worry about figuring out how cross-platform builds work now ;).
This change proposed a simplified build flow based on the current Bazel logic.
Notable changes introduced:
version.bzlfile which can be manipulated by RA.Outstanding issues to be resolved: