microsoft / azure-maven-archetypes

Maven Archetypes for Microsoft Azure Services
MIT License
22 stars 31 forks source link

`.gitignore` omitted from `azure-functions-archetype-1.52.jar` #209

Open mhw opened 1 year ago

mhw commented 1 year ago

I noticed that a new Azure Functions project I generated yesterday didn't include a .gitignore file, so added my own. As I read the docs further I realised there should have been one and found the source for it in this project. Something seems to have gone wrong when azure-functions-archetype-1.52.jar was built though, as the .gitignore file from this project hasn't been packaged in the JAR file:

$ unzip -l ~/Downloads/azure-functions-archetype-1.52.jar
Archive:  /Users/mhw/Downloads/azure-functions-archetype-1.52.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
     1383  03-01-2023 23:30   META-INF/MANIFEST.MF
     1533  03-01-2023 23:30   META-INF/MSFTSIG.SF
     9489  03-01-2023 23:30   META-INF/MSFTSIG.RSA
        0  03-02-2023 02:33   META-INF/
        0  03-02-2023 02:33   META-INF/maven/
        0  03-02-2023 02:33   META-INF/maven/com.microsoft.azure/
        0  03-02-2023 02:33   META-INF/maven/com.microsoft.azure/azure-functions-archetype/
     4137  03-02-2023 02:33   META-INF/archetype-post-generate.groovy
     2823  03-02-2023 02:33   META-INF/maven/archetype-metadata.xml
     1825  03-02-2023 02:33   META-INF/maven/com.microsoft.azure/azure-functions-archetype/pom.xml
       78  03-02-2023 02:33   META-INF/maven/com.microsoft.azure/azure-functions-archetype/pom.properties
        0  03-02-2023 02:33   archetype-resources/
        0  03-02-2023 02:33   archetype-resources/src/
        0  03-02-2023 02:33   archetype-resources/src/main/
        0  03-02-2023 02:33   archetype-resources/src/main/java/
        0  03-02-2023 02:33   archetype-resources/src/test/
        0  03-02-2023 02:33   archetype-resources/src/test/java/
     7788  03-02-2023 02:33   archetype-resources/pom.xml
      116  03-02-2023 02:33   archetype-resources/local.settings.json
      941  03-02-2023 02:33   archetype-resources/Dockerfile
      758  03-02-2023 02:33   archetype-resources/host.json
     1733  03-02-2023 02:33   archetype-resources/src/main/java/Function.java
     1730  03-02-2023 02:33   archetype-resources/src/test/java/FunctionTest.java
     2229  03-02-2023 02:33   archetype-resources/src/test/java/HttpResponseMessageMock.java
---------                     -------
    36563                     24 files
$ 

I checked the 1.51 JAR and it has the .gitignore, as does the new 1.53 release. I couldn't see any recent commits that seem like they might affect this part of the build process though so I'm guessing it may be an environment issue. Anyway, thought I should report it.

Flanker32 commented 1 year ago

@mhw Thanks a lot for your help, we will investigate this issue