Commit Graph

26 Commits

Author SHA1 Message Date
Tianon Gravi ff63f9df03 Fix GetSharedTagGroups ordering and update our hacky example code to have some SharedTags examples 2017-02-10 11:05:35 -08:00
Tianon Gravi c48fd9a499 First pass at implementing GetSharedTagGroups 2017-02-10 10:25:54 -08:00
Tianon Gravi 8488b2f8fc Add initial support for an explicit "SharedTags" field
Things we know we'll need to be able to do with the new `SharedTags` (and are thus included in this initial file format support):

- get list of all shared tags from a manifest (`manifest.GetAllSharedTags()`)
- get list of shared tags from an entry (`entry.SharedTags`)
- get list of entries given a shared tag (`manifest.GetSharedTag(tag)`)
2017-02-06 16:25:53 -08:00
Tianon Gravi 08ef5a968e Fix return values 2017-01-24 13:50:52 -08:00
Tianon Gravi 3a995f9639 Move GitFetch and GitCommit content enforcement back to Parse2822 (since they have a different format when coming from line-based legacy files) 2017-01-24 13:50:02 -08:00
Tianon Gravi 187e703bbf Return an error for duplicated tags in a single entry as well 2017-01-24 13:38:56 -08:00
Tianon Gravi a65f578c6d Fix error message formatting to be consistent 2017-01-24 13:12:29 -08:00
Tianon Gravi 29ebe1cee3 Also verify that Maintainers are valid in individual entry objects 2017-01-24 13:03:52 -08:00
Tianon Gravi 8bde624aad Move more "bad entry" error handling into manifest.AddEntry, wher eit really belongs 2017-01-24 13:02:23 -08:00
Tianon Gravi b3ac43e115 Update "duplicate tag" error message to include the tag list from both entries (for easier identification) 2017-01-24 12:54:44 -08:00
Tianon Gravi 0066f2058b Minor whitespace change 2017-01-24 10:41:19 -08:00
Tianon Gravi 9442670fdd Add very basic line-based "maintainer:" comment parsing (passing contents directly into the manifest struct without any verification for now) 2016-07-20 11:12:33 -07:00
Tianon Gravi d6068c47a7 Allow only "http" and "https" URLs 2016-06-08 10:36:33 -07:00
Tianon Gravi c1549952f3 Facepalm 2016-06-08 10:24:38 -07:00
Tianon Gravi ac3ac95930 First attempt to unstick Windows 2016-06-08 10:23:10 -07:00
Tianon Gravi 7d56be63f3 Be slightly less aggressive about using the current directory's "repo" 2016-06-01 17:08:02 -07:00
Tianon Gravi a0797a5c0b Add more validation and better line-based "git tag" handling 2016-05-27 16:41:04 -07:00
Tianon Gravi e74aa41b37 Catch errors for invalid tagName values 2016-05-27 13:25:04 -07:00
Tianon Gravi 04af83c7d7 Add simple "HasTag" function for a Manifest2822Entry 2016-05-27 13:19:04 -07:00
Tianon Gravi 8a9af33071 Update manifest.Fetch to also parse "tag" from repo strings 2016-05-27 13:11:10 -07:00
Tianon Gravi e40181b728 Also verify the "absoluteness" of the URL 2016-05-27 11:59:54 -07:00
Tianon Gravi 0b0d493724 Change the order manifest.Fetch parses so we can have a good fallback error message 2016-05-27 11:57:01 -07:00
Tianon Gravi f346802da9 Adjust the signature of Fetch to include the "repo name" 2016-05-27 11:47:30 -07:00
Tianon Gravi de5435319f Add initial "manifest.Fetch" command 2016-05-27 11:37:40 -07:00
Tianon Gravi 2a759cb2d3 Add example code for using the "manifest" package 2016-05-27 10:46:11 -07:00
Tianon Gravi ea2a7991ce Add initial "Manifest" reading package 2016-05-25 15:54:51 -07:00