-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sf -update wikidata downloads Archivematica extensions as well #210
Comments
NB. connected to #178 which should be the first place to look i.e. in |
this is the fault of my crappy config.go package: if you build signatures sequentially in the same session, previous config options can easily pollute later builds. In this case the archivematica.sig is being built before the wikidata one and the extend config option is still set. There is a config.Clear() command that you can pass to clear earlier options. Probably the cleanest way to fix this would be to add config.Clear() at the head of the wikidataOpts slice i.e.: wikidataOpts := []config.Option{
config.Clear(),
config.SetWikidataNamespace(),
config.SetWikidataNoPRONOM(),
} config.Clear() doesn't currently wipe the extend option so that would need to be updated as well. config.Clear() is defined in /pkg/config/identifier.go and should be updated like: func Clear() func() private {
return func() private {
identifier.name = ""
identifier.extend = nil
loc.fdd = ""
mimeinfo.mi = ""
return private{}
}
} |
fixed with v1.10.0 |
I haven't explored why, but
sf -update wikidata
is downloading Archivematica extensions as well. This in and of itself is not particularly harmful, but does impede testing of the Wikidata sig.The text was updated successfully, but these errors were encountered: