1
0
mirror of https://github.com/coreos/ignition.git synced 2026-02-06 18:47:54 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
yasminvalim
de452c404c fix: Handle unchecked error returns across the codebase and other linter issues
The linter found staticcheck and errorcheck issues.  Deferred statements now  use join  to combine any new error with an existing one, preventing error information from being lost. Other minor error checks, like for printing text  and flushing data have also been addressed.
2025-07-28 19:12:25 -03:00
Benjamin Gilbert
7814b85b5a Replace io/ioutil
It was deprecated in Go 1.16 and its functions moved elsewhere.
2022-08-09 19:04:31 -04:00
Jonathan Lebon
61cdb1a49f validate: tweak usage string
It's more canonical to have flags come before positional arguments (and
also it's actually compatible with `flag`, which... we should move away
from).
2022-01-07 16:51:36 -05:00
Jonathan Lebon
385e73147e validate: fix flag handling
This doesn't really matter because `ignition-validate` takes no flag
other than the special `-version` flag, but if it did (or it one day
does), one would quickly realize that `os.Args[1:]` is wrong and that
one instead wants `flag.Args()`, which are the args that aren't flags.
2022-01-07 16:51:36 -05:00
Benjamin Gilbert
3aeb818289 validate: accept any supported config version
Historically, a spec version's Parse() has called the prior version's
parser if the config version is unrecognized.  That is no longer the case,
so since ignition-validate calls the 3.0 parser, it will only accept 3.0
configs.  Call the version-independent Parse() wrapper instead.
2020-05-01 02:15:09 -04:00
Stephen Lowrie
bb6182a393 *: bump import path
Bumps the import path to be `github.com/coreos/ignition/v2`, this is
required to be able to import the v2 of Ignition alongside v0 in other
repositories.
2019-04-09 12:40:08 -05:00
Andrew Jeddeloh
ca84f7ee8e *: stablize spec 3.0.0
Make 3.0.0-experimental into 3.0.0.
2019-03-25 14:38:23 -07:00
Sayan Chowdhury
01fea1fc2f Replace cobra with built-in flag
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2019-01-12 02:41:58 +05:30
Andrew Jeddeloh
a94595af25 config: replace v2_4 with v3_0_exp 2019-01-03 12:53:25 -08:00
Andrew Jeddeloh
49d4c7277d *: switch packages to use new experimental package 2018-11-27 13:56:03 -08:00
Derek Gonyeo
3bbfe9499e test: add check for license header on go files
Modify the test script to check for the Apache License header on all go
files in config, internal, validate, and test. Fails if the header is
missing.
2018-03-08 16:03:11 -08:00
Derek Gonyeo
4b5155d200 validate: use new config import path 2018-03-08 16:03:11 -08:00
Derek Gonyeo
7114cc3f53 validate: add CLI tool for validating Ignition configs 2018-01-04 14:17:08 -08:00