daml/bazel_tools
Gary Verhaegen f025dc3065
daml-sdk-head: add optional sha information (#7717)
daml-sdk-head: add optional sha information

This PR add an option, `--sha`, to `daml-sdk-head` so that it produces a
more accurate version number including the current git sha.

The main consequence is that calling `daml-sdk-head --sha` take
significantly longer than calling `daml-sdk-head`, because it needs to
recompile everything that depends on the version number.

> ## Wait, but why??

I started this work in support of an internal project that needed to
test against unreleased, and possibly unmerged, daml versions. However,
after further discussion I believe there is a better option for their
use-case. I've decided to still open this PR because the work was done
and there is no downside to it. It may still be useful if one wanted to
be able to maintain more than one non-released local version of daml.

CHANGELOG_BEGIN
CHANGELOG_END
2020-10-16 16:40:58 +02:00
..
client_server Update Bazel 2.1.0 --> 3.3.1 (#6761) 2020-07-23 09:46:04 +02:00
dev_env_tool Reduce the number of runfiles in the compatibility tests (#6670) 2020-07-09 17:15:16 +00:00
java_testing replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
packaging Factor out reproducibility flags for tar and gzip (#6884) 2020-08-05 14:27:14 +00:00
runfiles Use com.daml as root package (#5343) 2020-04-05 19:49:57 +02:00
sh Factor out reproducibility flags for tar and gzip (#6884) 2020-08-05 14:27:14 +00:00
build_environment.bzl daml-sdk-head: add optional sha information (#7717) 2020-10-16 16:40:58 +02:00
BUILD.bazel replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
create_workspace.bzl replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
fat_cc_library.bzl Hermetic nixpkgs_cc_toolchain (#5976) 2020-05-18 18:03:51 +02:00
ghc_dwarf.bzl replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
grpc-bazel-apple.patch Pin rules_apple (#6845) 2020-07-24 09:47:05 +02:00
grpc-bazel-mingw.patch Bazel 1.1 (#3249) 2019-11-11 10:06:03 +01:00
grpc-haskell-core-cpp-options.patch Replace Hazel by stack_snapshot (#2743) 2019-11-22 14:24:08 +00:00
grpc-java-plugin-visibility.patch Update to bazel-0.27 (#1957) 2019-07-05 14:04:47 +00:00
haskell-c2hs.patch Building c2hs (#355) 2019-04-10 15:12:08 +02:00
haskell-ghcide-binary-q.patch Enable assertions in Haskell builds (#6853) 2020-07-24 14:29:25 +00:00
haskell-ghcide-expose-compat.patch Bump ghcide (#5103) 2020-03-20 16:43:59 +00:00
haskell-hie-bios.patch Bump ghc-ghcide (#2936) 2019-09-18 10:29:02 +02:00
haskell-js-dgtable.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-js-flot.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-js-jquery.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-lsp-test-no-reexport.patch Upgrade ghcide and haskell-lsp (#3499) 2019-11-18 10:56:19 +00:00
haskell-opt.patch upgrade rules_haskell (#6284) 2020-06-10 17:21:31 +02:00
haskell-shake.patch Embed shake data-files via TH (#4584) 2020-02-18 17:53:27 +01:00
haskell-strict-source-names.patch Update rules_haskell (#7077) 2020-08-11 10:14:56 +00:00
haskell-windows-extra-libraries.patch Update rules_haskell (#4751) 2020-03-13 16:49:34 +01:00
haskell-windows-remove-fake-libs.patch upgrade rules_haskell (#6284) 2020-06-10 17:21:31 +02:00
haskell-zip.patch Patch zip library to not use temp files (#5621) 2020-04-20 08:35:11 +00:00
haskell.bzl Enable assertions in Haskell builds (#6853) 2020-07-24 14:29:25 +00:00
hlint.bzl replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
java.bzl replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
javadoc_library.bzl Fix redirects, java-bindings javadoc, and live-preview.sh (#5446) 2020-04-07 09:53:26 +02:00
nixpkgs-disable-http2.patch Hermetic nixpkgs_cc_toolchain (#5976) 2020-05-18 18:03:51 +02:00
nixpkgs-hermetic-cc-toolchain.patch Update Bazel 2.1.0 --> 3.3.1 (#6761) 2020-07-23 09:46:04 +02:00
os_info.bzl run compatibility tests on macos (#5723) 2020-04-27 14:55:16 +02:00
pkg.bzl Remove vendored pkg_tar (#6934) 2020-07-30 15:53:16 +00:00
pom_file.bzl replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
pom_template.xml Unbreak pom_template.xml (#7651) 2020-10-12 14:36:57 +00:00
proto.bzl Remove vendored pkg_tar (#6934) 2020-07-30 15:53:16 +00:00
rules_nodejs_bash.patch open-sourcing daml 2019-04-04 09:33:38 +01:00
rules_nodejs_node_dependency.patch Enforce a dependency on node_nix (#6035) 2020-05-19 16:58:00 +00:00
rules_nodejs_npm_cli_path.patch Bazelify daml json types (#4110) 2020-01-20 15:02:33 +00:00
scala-binary-rootpath.patch Upgrade rules_scala (#6883) 2020-07-28 08:53:12 +00:00
scala-escape-jvmflags.patch Upgrade rules_scala (#6883) 2020-07-28 08:53:12 +00:00
scala.bzl add silent_annotations option to da_scala bazel functions (#7668) 2020-10-13 15:44:16 +00:00