Skip to content

jordcarfetch/enum-wire-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enum Wire Bug

This repository attempts to reproduce a bug with wire's handling of swift modules and enums.

mise install

A .mise.toml is provided for reproducing the environment exactly. Otherwise please review the mise configuration.

Download the latest version of Wire

curl -L https://repo.maven.apache.org/maven2/com/squareup/wire/wire-compiler/5.3.3/wire-compiler-5.3.3-jar-with-dependencies.jar \
    --output wire-compiler-5.3.3.jar

Generate Swift Files without modules ✅

rm -rf swift/nomodules && java -jar wire-compiler-5.3.3.jar \
    --proto_path=proto/ \
    --swift_out=swift/nomodules

Generate Swift Files with modules ❌

rm -rf swift/modules && java -jar wire-compiler-5.3.3.jar \
    --proto_path=proto/ \
    --swift_out=swift/modules \
    --experimental-module-manifest=wire.yaml

About

Reproduction of a bug with square's wire tool when using Swift modules and enums

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages