Skip to content

Commit

Permalink
cmd-meta: add support for specifying a different architecture
Browse files Browse the repository at this point in the history
Useful for meta merging when you don't want to spin up gangplank
to talk to another machine just to merge some json together. Ex:

```
cosa meta --finalize --arch aarch64
```
  • Loading branch information
dustymabe authored and saqibali-2k committed Jul 6, 2021
1 parent 5d583e6 commit 11c1dc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd-meta
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def new_cli():
parser.add_argument('--artifact', help="when merging name of the artifact")
parser.add_argument('--workdir', default=os.getcwd())
parser.add_argument('--build', default='latest')
parser.add_argument('--arch', default=None)
parser.add_argument('--skip-validation',
help='do not validate meta.json',
action='store_true')
Expand Down Expand Up @@ -59,7 +60,7 @@ def new_cli():
schema = args.schema
if args.skip_validation:
schema = None
meta = GenericBuildMeta(args.workdir, args.build, schema=schema)
meta = GenericBuildMeta(args.workdir, args.build, basearch=args.arch, schema=schema)
old_ts = meta.get(COSA_VER_STAMP)

def pather(val):
Expand Down

0 comments on commit 11c1dc5

Please sign in to comment.