You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/custom_version/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
# Custom FormatJS CLI Version Example
1
+
# Custom FormatJS CLI Binary Example
2
2
3
-
This example demonstrates how to use a custom FormatJS CLI version that is not included in the built-in `FORMATJS_CLI_VERSIONS` dictionary.
3
+
This example demonstrates how to use custom FormatJS CLI binary URLs instead of the built-in `FORMATJS_CLI_VERSIONS` dictionary.
4
4
5
5
## What This Example Shows
6
6
7
-
-**Custom Version Configuration**: How to use version 0.1.0, which was removed from the built-in versions
7
+
-**Custom Binary Configuration**: How to provide explicit URLs and checksums for version 0.1.0
8
8
-**Simple Ergonomic API**: Just provide version, platform, url, and sha256 - no manual platform constraints needed
9
9
-**Message Extraction**: A working example of extracting messages using the custom CLI version
10
10
@@ -82,7 +82,7 @@ In this example:
82
82
83
83
- On macOS ARM64: The custom 0.1.0 darwin-arm64 toolchain is available
84
84
- On Linux x64: The custom 0.1.0 linux-x64 toolchain is available
85
-
- The standard 0.1.2 toolchains (from rules_formatjs root MODULE.bazel) are also available
85
+
- The standard toolchains from the rules_formatjs root MODULE.bazel are also available
86
86
- Bazel will select the best match based on platform constraints
87
87
88
88
## Running the Example
@@ -162,7 +162,7 @@ When you build the `:messages` target, it will create a `messages.json` file con
162
162
163
163
## Comparison with Standard Toolchains
164
164
165
-
This example does NOT call `formatjs_cli.toolchain()` because we're only using custom binaries. However, the root MODULE.bazel of `rules_formatjs` does call it, so standard toolchains (0.1.2) are also available.
165
+
This example does NOT call `formatjs_cli.toolchain()`without custom repositories because we're only using custom binaries. However, the root MODULE.bazel of `rules_formatjs` does call it, so standard toolchains are also available.
166
166
167
167
If you want to completely override and use only custom versions, you can still do so - Bazel will prefer the custom toolchains if they match the platform constraints.
0 commit comments