File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - uses : actions/checkout@v6
1414 - uses : jdx/mise-action@v4
1515 - uses : Swatinem/rust-cache@v2
16+ - name : ensure rustfmt/clippy components
17+ run : rustup component add rustfmt clippy
1618 - name : check:fmt
1719 run : mise run check:fmt
1820 - name : check:rs
3133 run : mise run build:ts
3234 - name : test:integration:ts
3335 run : mise run test:integration:ts
34- - name : check:bench
35- run : cargo bench --no-run
36- - name : audit
37- run : |
38- cargo install cargo-audit --quiet
39- cargo audit
4036 generate-check :
4137 name : generated files up-to-date
4238 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -357,6 +357,15 @@ pub async fn serve(config: Config) -> Result<()> {
357357 } else {
358358 Storage :: new ( & config. data_dir )
359359 } ;
360+
361+ // The `default` bucket is auto-managed: clients may PUT/GET against it
362+ // without an explicit POST /v1/buckets. Materialize its directory so the
363+ // write path's rename target exists. Idempotent.
364+ storage
365+ . create_bucket ( "default" , beyond_objects_storage:: AccessLevel :: default ( ) )
366+ . await
367+ . map_err ( |e| anyhow:: anyhow!( "create default bucket: {e}" ) ) ?;
368+
360369 let index = Arc :: new ( Index :: open ( & config. index_dir ) ?) ;
361370
362371 // Reconcile the listing index against the filesystem before serving.
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ const spec = resolve(root, "openapi/v1.json");
99const out = resolve ( root , "sdk/ts/src/types.ts" ) ;
1010
1111execSync ( `npx openapi-typescript ${ spec } -o ${ out } ` , { stdio : "inherit" } ) ;
12+ execSync ( `dprint fmt ${ out } ` , { stdio : "inherit" , cwd : root } ) ;
You can’t perform that action at this time.
0 commit comments