daml/daml-assistant
dylant-da 760f879e35
Extract available snapshot versions from Github (#17029)
* Extract available snapshot versions from Github

* Refactor slightly, add comments

* Implement caching

* Make getLatest commands query the minimum number of times from Github

* lint

* filter out prereleases, fix naming

* Fix outdated reference `extractVersionsFromSnapshots` to extractReleases

* Retrieve all versions so that getLatest can prune old versions' patches

* Hide --snapshots, --all, and --force-reload flags from daml version

* Get isPrerelease check correct way around

* Thread UseCache to `daml install` and other commands

* Refactor getEnvLatestStableSdkVersion to defer sdk version extraction

* store envLatestStableSdkVersion thunk in struct so tests can override it

* Read environment var early in getLatestStableSdkVersion

I implemented this with `overrideWithEnvVarMaybe`, but it required some
rather opaque abuse of `fmap pure`, `sequence`, and `join`

* Replace hidden with internal so flags don't show up in help
2023-06-28 12:04:00 +00:00
..
daml-helper canton: allow depending on arbitrary sha (#16926) 2023-06-01 15:06:35 +00:00
daml-project-config/DA/Daml/Project bump copyright (#16002) 2023-01-04 18:21:15 +01:00
daml-sdk bump copyright (#16002) 2023-01-04 18:21:15 +01:00
exe/DA/Daml Extract available snapshot versions from Github (#17029) 2023-06-28 12:04:00 +00:00
integration-tests Remove daml visualize / damlc visual (#16901) 2023-05-30 10:50:36 +01:00
scala-daml-project-config Upgraded circe-yaml to 15.0-RC1. [#16412]. (#16415) 2023-03-13 14:51:43 +01:00
src/DA/Daml/Assistant Extract available snapshot versions from Github (#17029) 2023-06-28 12:04:00 +00:00
test/DA/Daml/Assistant Extract available snapshot versions from Github (#17029) 2023-06-28 12:04:00 +00:00
BUILD.bazel Extract available snapshot versions from Github (#17029) 2023-06-28 12:04:00 +00:00
daml-project-config.cabal Add cabal support for some components (#16755) 2023-06-05 17:07:31 +02:00
get-daml.sh clean up refresh-get-daml (#16994) 2023-06-15 09:49:07 +01:00