MagentoTarToConnect icon indicating copy to clipboard operation
MagentoTarToConnect copied to clipboard

CONNECT ERROR: Unsupported resource type

Open marvinosswald opened this issue 9 years ago • 5 comments

Doesn't have that Issue with an extension I've packed with Magento Builtin Packager once, but my new one I've never packed with the builtin tools...

But as part of my deploy pipe I delete the files created with Builtin tools.. so they shouldn't matter.

I've I try packaging it with builtin tools it works like charm... any idea ?

https://gist.github.com/marvinosswald/bcd7fb4acf968d3afe58

marvinosswald avatar Aug 27 '15 17:08 marvinosswald

Um, I'm not sure what you're talking about in this new issue?

astorm avatar Aug 27 '15 17:08 astorm

ok, let me try to explain... If I pack the new extension with MagentoTarToConnect and try to install it with Magento Connect it says: CONNECT ERROR: Unsupported resource type

marvinosswald avatar Aug 27 '15 19:08 marvinosswald

OK, can you ungzip and untar the extension, find the package manifest file (package.xml) and compare with with an extension that's working?

astorm avatar Aug 27 '15 19:08 astorm

Finally had time to look into it, it appears that MagentoTarToConnect outputs another contents structure.

I guess I'm messing something up in my new ci env, have to do further investigations.

MagentoTarToConnect:

    <contents>
      <target name="mage">
        <dir name="app">
          <dir name="code">
            <dir name="local">

            </dir>
          </dir>
          <dir name="etc">

          </dir>
        </dir>
        <dir name="lib">
          <dir name="H2ODev">

          </dir>
        </dir>
      </target>
    </contents>

Builtin:

    <contents>
      <target name="magelocal">

      <target name="mageetc">

      </target>
      <target name="magelib">

      </target>
    </contents>

EDIT:

getTagetMap() should translate the structure for Magento, shouldn't it ? Only difference to my last CI is that now I'm using the php file instead of the phar as my ci couldn't handle it for some reasons...

marvinosswald avatar Sep 01 '15 13:09 marvinosswald

@marvinosswald still a little confused here as to what, exactly, the issue you're having is. Can you remove the build system from the equation and try using the tar to connect script stand alone? Assuming that it works stand alone, compare your built archives. If it doesn't work stand alone, there may be a bug, or you may have uncovered a change in a recent version of Magento we need to be aware of.

astorm avatar Sep 01 '15 16:09 astorm