Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions verity-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ compute fs-verity for each file, build the Merkle tree, and write the FlatBuffer
metadata file:

```bash
cargo run -p cryptpilot-verity -- format /path/to/dir --label env=prod --hash-output metadata.fb
cargo run -p cryptpilot-verity -- format /path/to/dir --label env=prod -m metadata.fb --hash-output -
```

#### Option B: Go implementation
Expand All @@ -42,7 +42,6 @@ package main

import (
"encoding/hex"
"fmt"
"os"

"github.com/openanolis/cryptpilot/verity-go/metadata"
Expand Down Expand Up @@ -76,7 +75,6 @@ are available:
package main

import (
"encoding/hex"
"fmt"
"os"

Expand Down
4 changes: 1 addition & 3 deletions verity-go/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Rust `cryptpilot-verity` CLI 可自动完成完整流程 — 遍历目录、
计算每个文件的 fs-verity、构建 Merkle 树、输出 FlatBuffers 元数据文件:

```bash
cargo run -p cryptpilot-verity -- format /path/to/dir --label env=prod --hash-output metadata.fb
cargo run -p cryptpilot-verity -- format /path/to/dir --label env=prod -m metadata.fb --hash-output -
```

#### 方式 B:Go 代码实现
Expand All @@ -41,7 +41,6 @@ package main

import (
"encoding/hex"
"fmt"
"os"

"github.com/openanolis/cryptpilot/verity-go/metadata"
Expand Down Expand Up @@ -74,7 +73,6 @@ func main() {
package main

import (
"encoding/hex"
"fmt"
"os"

Expand Down
2 changes: 1 addition & 1 deletion verity-go/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module cryptpilot-verity-go
module github.com/openanolis/cryptpilot/verity-go

go 1.24

Expand Down
2 changes: 1 addition & 1 deletion verity-go/metadata/interop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"runtime"
"testing"

"cryptpilot-verity-go/verity"
"github.com/openanolis/cryptpilot/verity-go/verity"
)

// expectedDescriptorHashes maps test file name to expected SHA-256 descriptor hash.
Expand Down
4 changes: 2 additions & 2 deletions verity-go/metadata/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"sort"

"cryptpilot-verity-go/metadata/generated"
"cryptpilot-verity-go/verity"
"github.com/openanolis/cryptpilot/verity-go/metadata/generated"
"github.com/openanolis/cryptpilot/verity-go/verity"

flatbuffers "github.com/google/flatbuffers/go"
)
Expand Down
2 changes: 1 addition & 1 deletion verity-go/metadata/metadata_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/hex"
"fmt"

"cryptpilot-verity-go/metadata/generated"
"github.com/openanolis/cryptpilot/verity-go/metadata/generated"

flatbuffers "github.com/google/flatbuffers/go"
)
Expand Down
2 changes: 1 addition & 1 deletion verity-go/metadata/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"encoding/hex"
"testing"

"cryptpilot-verity-go/verity"
"github.com/openanolis/cryptpilot/verity-go/verity"
)

func makeTestFileVerityInfo(path string, data []byte) FileVerityInfo {
Expand Down
Loading