Format authored monorepo code with pinned language formatters
This commit is contained in:
+13
-12
@@ -9,13 +9,17 @@ export type QuixosSourcePolicy = "pinned" | "track-release" | "track-development
|
||||
// Resource repositories only need the exact Quixos commit they were authored
|
||||
// against. A workspace root additionally declares how a runtime may advance
|
||||
// that exact baseline.
|
||||
export type QuixosSource = GitSource & ({
|
||||
policy: QuixosSourcePolicy;
|
||||
ref: string;
|
||||
} | {
|
||||
policy?: undefined;
|
||||
ref?: undefined;
|
||||
});
|
||||
export type QuixosSource = GitSource &
|
||||
(
|
||||
| {
|
||||
policy: QuixosSourcePolicy;
|
||||
ref: string;
|
||||
}
|
||||
| {
|
||||
policy?: undefined;
|
||||
ref?: undefined;
|
||||
}
|
||||
);
|
||||
|
||||
export type LockedResourceKind = "interface" | "package";
|
||||
|
||||
@@ -40,9 +44,7 @@ export type QuixosLockFragmentDocument = {
|
||||
resources: LockedResource[];
|
||||
};
|
||||
|
||||
export type QuixosLockDocument =
|
||||
| QuixosLockRootDocument
|
||||
| QuixosLockFragmentDocument;
|
||||
export type QuixosLockDocument = QuixosLockRootDocument | QuixosLockFragmentDocument;
|
||||
|
||||
export type QuixosRepositoryLock = {
|
||||
formatVersion: 1;
|
||||
@@ -60,8 +62,7 @@ export type NixGitInput = {
|
||||
|
||||
export const RETENTION_TAG_PREFIX = "refs/tags/quixos-reachability/";
|
||||
|
||||
export const retentionTagForCommit = (commit: string): string =>
|
||||
`${RETENTION_TAG_PREFIX}${commit.toLowerCase()}`;
|
||||
export const retentionTagForCommit = (commit: string): string => `${RETENTION_TAG_PREFIX}${commit.toLowerCase()}`;
|
||||
|
||||
export const nixGitInput = (source: GitSource): NixGitInput => ({
|
||||
type: "git",
|
||||
|
||||
Reference in New Issue
Block a user