½-way published my package. Error while Pre-publishing: Match failed


#1

Hi all.

whilst trying to publish my new package, I get the following output:

=> Errors while publishing:
While pre-publishing package goatic:accounts-steam:
error: Match failed

I’ve included the package.js files of the package and it’s dependency as a reference - hopefully someone knows what I’m doing wrong.

Package.describe({
name: 'goatic:accounts-steam',
  version: '1.0.0',
  summary: 'Login service for Steam accounts',
  git: null,
  documentation: 'README.md'
})

Package.onUse(function(api) {
  api.versionsFrom('1.2.0.1')
  api.use('accounts-base', ['client','server'])
  api.imply('accounts-base', ['client', 'server'])
  api.use('accounts-oauth', ['client', 'server'])
  api.use('ecmascript')
  api.use('goatic:steam@1.0.0', ['client', 'server'])
  api.addFiles('steam.js')
  api.addFiles('steam_login_button.css','client')
})

the steam dependency-package is as follows:

Package.describe({
  name: 'goatic:steam',
  version: '1.0.0',
  summary: 'Steam OAuth flow',
  git: null,
  documentation: null
})

Package.onUse(function(api) {
  api.versionsFrom('1.2.0.2')
  api.use('ecmascript')
  api.use(['underscore', 'templating','random'],'client')
  api.use('http', 'server')
  api.use(['oauth', 'oauth2', 'service-configuration'], ['client','server'])
  api.export('Steam')
  api.addFiles(['steam_configure.html', 'steam_configure.js', 'steam_client.js'],'client')
  api.addFiles('steam_server.js', 'server')
})

#2

Can you try removing the git: null lines from your packages.

I have no evidence for this suggestion other than your syntax looks fine otherwise. The git property is described as an optional string github URL (so not null).

The “match failed” error is straight out of check, so if the builder is sanitising the describe object it may be objecting to null.


#3

Yup - removing the nulls did it :smile: thanks for the advice, it’s much appreciated!