DefGuard / DefGuard/YubiKey-Provision

Compiling on WIndows

Aperta
#7 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
4
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

i have no clue about rust, but i tried like this:
- install rust using rustup
- compile like described for MacOs in the docs

```
git submodule init
git submodule update
cargo build
```

this results in:

```
error: failed to run custom build command for `yubikey-provision v0.1.8 (C:\Users\alex\Downloads\defguard-yubikey-provision)`

Caused by:
process didn't exit successfully: `C:\Users\alex\Downloads\defguard-yubikey-provision\target\debug\build\yubikey-provision-d1f5323220e834e6\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=proto/worker/worker.proto
cargo:rerun-if-changed=proto/worker

--- stderr
Error: Custom { kind: Other, error: "protoc failed: google/protobuf/empty.proto: File not found.\r\nworker.proto:3:1: Import \"google/protobuf/empty.proto\" was not found or had errors.\r\nworker.proto:27:40: \"google.protobuf.Empty\" is not defined.\r\nworker.proto:29:39: \"google.protobuf.Empty\" is not defined.\r\n" }
warning: build failed, waiting for other jobs to finish...
```

i downloaded protobuf from here https://github.com/protocolbuffers/protobuf/releases/tag/v25.2

This also includes a directory called "includes" which has some google stuff in it. I copied this directory to the root folder of the cloned yubikey-provision repo but this changes nothing.

Can you please give me a hint on compiling for windows?

I already tried using docker, ubuntu-in-vm and now out of desperation i'm trying to compile for windows

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia eseguendo su Windows i comandi documentati git submodule e cargo build, quindi esamina l’output della compilazione per proto/worker/worker.proto e per l’include mancante google/protobuf/empty.proto. Il lavoro è completato quando il progetto viene compilato correttamente su Windows e gli import protobuf richiesti vengono risolti; l’issue non indica alcun file sorgente o test oltre al percorso proto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
grpc, rust
Ambito
cli, security
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.