| title | Nixの評価がref-format: reftableなGitリポジトリーで失敗する | ||||||
|---|---|---|---|---|---|---|---|
| description | Nix 2.28.5では nix flake {subcommand} . がreftableなGitリポジトリー( extensions.refstorage=reftable )で失敗する場合がある。回避策としてflake-urlを path: で指定する(e.g. nix flake show path:.)。 | ||||||
| tags |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| "use strict"; | |
| const EVIL_DOMAINS = /** @type {const} */ ([ | |
| "error-report.com", | |
| "html-load.com", | |
| "content-loader.com", | |
| ]); | |
| /** | |
| * @param {string} urlString |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| "use strict"; | |
| const INITIAL = Symbol("INITIAL"); | |
| /** | |
| * @template T | |
| * @param {() => T} computation | |
| */ | |
| export const memoize = (computation) => { | |
| /** @type {typeof INITIAL | T} */ let cache = INITIAL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @ts-check | |
| "use strict"; | |
| /** | |
| * @template TSuccessValue | |
| * @template {'success' | 'error'} [TStatus='success' | 'error'] | |
| */ | |
| export class Result { | |
| /** | |
| * @readonly |
OlderNewer