Skip to content
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

Create file_formats_java_class 7.0.0 #1362

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

ATPStorages
Copy link
Contributor

This PR was manually created due to an issue with alr publish, alr 2.0.2+9b80158;

PS C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class> alr publish
ERROR: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class: git status You have unstaged changes. Please commit or stash them.
PS C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class> git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
PS C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class>

-vv -d run

PS C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class> alr -vv -d publish
-->> Load config key: 'index.auto_update_asked' = 'TOML_BOOLEAN'
-->> Load config key: 'index.last_update' = 'TOML_INTEGER'
-->> Load config key: 'toolchain.assistant' = 'TOML_BOOLEAN'
-->> Load config key: 'toolchain.external.gnat' = 'TOML_BOOLEAN'
-->> Load config key: 'toolchain.external.gprbuild' = 'TOML_BOOLEAN'
-->> Load config key: 'toolchain.use.gnat' = 'TOML_STRING'
-->> Load config key: 'toolchain.use.gprbuild' = 'TOML_STRING'
-->> Load config key: 'user.email' = 'TOML_STRING'
-->> Load config key: 'user.github_login' = 'TOML_STRING'
-->> Load config key: 'user.name' = 'TOML_STRING'
-->> Looking for alire metadata at: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-->> Looking for alire metadata at: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-->> Looking for alire metadata at: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-->> Looking for alire metadata at: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-> Config file is not readable or doesn't exist: 'C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class\alire\settings.toml'
-> Using default value for configuration 'distribution.disable_detection': 'FALSE'
-->> Registering variable for expressions: distribution
-->> Registering variable for expressions: os
-->> Registering variable for expressions: toolchain
-->> Registering variable for expressions: word-size
-->> Registering variable for expressions: host-arch
-->> alr platform configured
-->> Begin command line:
-->>    Arg 0 (len 34): C:\Program Files\Alire\bin\alr.exe
-->>    Arg 1 (len 3): -vv
-->>    Arg 2 (len 2): -d
-->>    Arg 3 (len 7): publish
-->> End command line.
-->> Setenv PATH=C:\Users\Adenosine3Phosphate\AppData\Local\alire\cache\msys64\usr\bin;C:\Users\Adenosine3Phosphate\AppData\Local\alire\cache\msys64\usr\local\bin;%PATH%;C:\Program Files\Git\cmd;C:\Program Files (x86)\GnuPG\bin;C:\Program Files\nodejs;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Intel\MPSS\bin;C:\Program Files\Intel\MPSS\service;C:\Program Files\dotnet;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\usbipd-win\;C:\Program Files\PowerShell\7\;C:\Users\Adenosine3Phosphate\AppData\Local\Programs\Python\Python39\Scripts;C:\Users\Adenosine3Phosphate\AppData\Local\Programs\Python\Python39;C:\Users\Adenosine3Phosphate\.cargo\bin;C:\Users\Adenosine3Phosphate\scoop\shims;C:\Users\Adenosine3Phosphate\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2022.2.1\bin;C:\msys64\mingw64\bin;C:\Users\Adenosine3Phosphate\Downloads\kotlin-native-windows-x86_64-1.7.20\bin;C:\Program Files (x86)\Nmap;C:\Users\Adenosine3Phosphate\Downloads\gnu-efi-3.0.17\inc;C:\VulkanSDK\1.3.268.0\Lib;C:\Program Files\JetBrains\JetBrains Rider 2023.2.3\bin;C:\Users\Adenosine3Phosphate\AppData\Local\bin\NASM;C:\Program Files\JetBrains\RustRover 233.10527.39\bin;C:\Users\Adenosine3Phosphate\.dotnet\tools;C:\Users\Adenosine3Phosphate\AppData\Local\JetBrains\Toolbox\scripts;C:\Users\Adenosine3Phosphate\AppData\Local\Programs\Ollama;C:\Program Files (x86)\GnuPG\bin;C:\Users\Adenosine3Phosphate\AppData\Roaming\npm;C:\Users\Adenosine3Phosphate\AppData\Local\Microsoft\WindowsApps;C:\Users\Adenosine3Phosphate\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Adenosine3Phosphate\AppData\Local\alire\cache\msys64\mingw64\bin;C:\Users\Adenosine3Phosphate\.dotnet;C:\Program Files\dotnet;C:\Users\Adenosine3Phosphate\.aftman\bin;C:\Users\Adenosine3Phosphate\.rokit\bin;C:\Program Files\Alire\bin;C:\Users\Adenosine3Phosphate\Downloads\DrMemory-Windows-2.6.0\bin;
-->> Platform-specific initialization done.
-->> Looking for indexes at C:\Users\Adenosine3Phosphate\AppData\Local\alire\settings\indexes
-> Found 0 indexes
-->> Index auto-refresh skipped: no index configured
-->> Looking for alire metadata at: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-->> Loading release file_formats_java_class=7.0.0-dev
-->> Valid root found at C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-->> Selected name for tempfile: C:\Users\ADENOS~1\AppData\Local\Temp\alr-suxw.tmp when at dir: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-> Spawning: ["git", "status"] > C:\Users\ADENOS~1\AppData\Local\Temp\alr-suxw.tmp
-->> Forcing writability of dir C:\Users\ADENOS~1\AppData\Local\Temp\alr-suxw.tmp
-> Spawning: ["attrib", "-R", "C:\Users\ADENOS~1\AppData\Local\Temp\alr-suxw.tmp"]
-->> Deleting temporary file C:\Users\ADENOS~1\AppData\Local\Temp\alr-suxw.tmp...
-->> Selected name for tempfile: C:\Users\ADENOS~1\AppData\Local\Temp\alr-gjtz.tmp when at dir: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class
-> Spawning: ["git", "status", "--porcelain"] > C:\Users\ADENOS~1\AppData\Local\Temp\alr-gjtz.tmp
-->> Forcing writability of dir C:\Users\ADENOS~1\AppData\Local\Temp\alr-gjtz.tmp
-> Spawning: ["attrib", "-R", "C:\Users\ADENOS~1\AppData\Local\Temp\alr-gjtz.tmp"]
-->> Deleting temporary file C:\Users\ADENOS~1\AppData\Local\Temp\alr-gjtz.tmp...
-->> Command exited with valid code: 0
stderr: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class: git status You have unstaged changes. Please commit or stash them.
ERROR: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class: git status You have unstaged changes. Please commit or stash them.
-->> ---8<--- Exception dump begin ---8<---
-->> ALIRE.CHECKED_ERROR
-->> C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class: git status You have unstaged changes. Please commit or stash them.
-->> raised ALIRE.CHECKED_ERROR : alire-stored-error:1
[C:\Program Files\Alire\bin\alr.exe]
0x7ff71c08b6aa Semantic_Versioning.Basic.Restrictions.First_Index at alire.adb:284
0x7ff71bdbaa68 Semantic_Versioning.Basic.Restrictions.First_Index at alire-publish.adb:191
0x7ff71bdbaea2 Semantic_Versioning.Basic.Restrictions.First_Index at alire-publish.adb:221
0x7ff71bdc8b1e Semantic_Versioning.Basic.Restrictions.First_Index at alire-publish.adb:1110
0x7ff71b663bf8 Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-publish.adb:99
0x7ff71b664550 Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-publish.adb:23
0x7ff71b6e1628 Semantic_Versioning.Basic.Restrictions.First_Index at clic-subcommand-instance.adb:749
0x7ff71b6edeeb Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands.adb:561
0x7ff71b5c16a0 Alr.Main at alr-main.adb:13
0x7ff71b5c4f2e Main at b__alr-main.adb:2306
0x7ff71b5c133e __tmainCRTStartup at ???
0x7ff71b5c1144 mainCRTStartup at ???
[C:\WINDOWS\System32\KERNEL32.DLL]
0x7fff82ae5765
[C:\WINDOWS\SYSTEM32\ntdll.dll]
0x7fff841023ea

-->> --->8--- Exception dump end ----->8---
stderr: ALIRE.CHECKED_ERROR
stderr: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class: git status You have unstaged changes. Please commit or stash them.
stderr: raised ALIRE.CHECKED_ERROR : alire-stored-error:1
[C:\Program Files\Alire\bin\alr.exe]
0x7ff71c08b6aa Semantic_Versioning.Basic.Restrictions.First_Index at alire.adb:284
0x7ff71bdbaa68 Semantic_Versioning.Basic.Restrictions.First_Index at alire-publish.adb:191
0x7ff71bdbaea2 Semantic_Versioning.Basic.Restrictions.First_Index at alire-publish.adb:221
0x7ff71bdc8b1e Semantic_Versioning.Basic.Restrictions.First_Index at alire-publish.adb:1110
0x7ff71b663bf8 Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-publish.adb:99
0x7ff71b664550 Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands-publish.adb:23
0x7ff71b6e1628 Semantic_Versioning.Basic.Restrictions.First_Index at clic-subcommand-instance.adb:749
0x7ff71b6edeeb Semantic_Versioning.Basic.Restrictions.First_Index at alr-commands.adb:561
0x7ff71b5c16a0 Alr.Main at alr-main.adb:13
0x7ff71b5c4f2e Main at b__alr-main.adb:2306
0x7ff71b5c133e __tmainCRTStartup at ???
0x7ff71b5c1144 mainCRTStartup at ???
[C:\WINDOWS\System32\KERNEL32.DLL]
0x7fff82ae5765
[C:\WINDOWS\SYSTEM32\ntdll.dll]
0x7fff841023ea

ERROR: C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class: git status You have unstaged changes. Please commit or stash them.
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0x7ff71c08b6aa Semantic_Versioning.Basic.Restrictions.First_Index at alire.adb:284

@mosteo
Copy link
Member

mosteo commented Jan 15, 2025

Your issue may have been fixed in alire-project/alire#1782, which includes a good deal of improvements related to git for publishing.

@ATPStorages
Copy link
Contributor Author

Your issue may have been fixed in alire-project/alire#1782, which includes a good deal of improvements related to git for publishing.

I was able to build alire+3d280a5, but it still resulted in the same error
image

@ATPStorages ATPStorages changed the title Create file_formats_java_class 7.0.0-dev Create file_formats_java_class 7.0.0 Jan 15, 2025
@mosteo
Copy link
Member

mosteo commented Jan 15, 2025

I was able to build alire+3d280a5, but it still resulted in the same error

That's a letdown, but thanks for checking it.

@mosteo mosteo merged commit da5ce66 into alire-project:stable-1.3.0 Jan 15, 2025
18 checks passed
@Seb-MCaw
Copy link

I'd be curious if you could try running git status on that same clone from within MinGW, not PowerShell.

I was able to reproduce the issue by having only the native Windows git on PATH, but having the MSYS2 git manually installed with pacman (not on PATH).

The two versions of git seem to handle newlines differently, so a clone produced by one looks dirty to the other. alr won't auto-install the MSYS2 git itself, but it will use it (in preference to the the native one, regardless of what's on PATH) if you install it manually.

@ATPStorages
Copy link
Contributor Author

ATPStorages commented Jan 17, 2025

I'd be curious if you could try running git status on that same clone from within MinGW, not PowerShell.

Hi, sorry for the late reply, got carried away with stuff.
image
It does appear that MinGW's /usr/bin/git is seeing something different over than PowerShell's C:\Program Files\Git\cmd\git.exe. After committing MinGW's side to the local repository, alr publish (both 2.1.0-dev+3d280a5 and 2.0.2+9b80158) initial check succeeded, but failed shortly after, citing a path in MinGW.

PowerShell run:

PS C:\Users\Adenosine3Phosphate\Desktop\File Formats\file_formats_java_class> alr publish       
Success: Local repository is clean.
ERROR: Path is not absolute: /c/Users/Adenosine3Phosphate/Desktop/File Formats/file_formats_java_class
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0x7ff71c085d49 semantic_versioning__basic__restrictions__first_index at ???

MinGW run:

Adenosine3Phosphate@ATProcessorMk2 MINGW64 /c/Users/Adenosine3Phosphate/Desktop/File Formats/file_formats_java_class
$ ../../alire/bin/alr publish
Success: Local repository is clean.
ERROR: Path is not absolute: /c/Users/Adenosine3Phosphate/Desktop/File Formats/file_formats_java_class
ERROR: alr encountered an unexpected error, re-run with -d for details.
ERROR: error location: 0x7ff775d96e29 semantic_versioning__basic__restrictions__first_index at ???

Adenosine3Phosphate@ATProcessorMk2 MINGW64 /c/Users/Adenosine3Phosphate/Desktop/File Formats/file_formats_java_class
$

Thanks for the heads up.

@Seb-MCaw
Copy link

Thanks for confirming. I have opened at alire-project/alire#1821.

alr doesn't in general support running under MinGW, Cygwin etc., so the subsequent failure is expected. The fact that alr goes out of its way to use a version of git that doesn't work is definitely a bug, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants