Edgewall Software
Modify

#13602 closed defect (fixed)

`vcpkg install "@.github\vcpkg.txt"` failed on GitHub Actions

Reported by: Jun Omae Owned by: Jun Omae
Priority: normal Milestone: 1.6
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The response file of vcpkg command doesn't work.

Related: https://github.com/microsoft/vcpkg-tool/pull/1027

<unknown>:1:1: error: expected a port name here (must be lowercase, digits, '-')
    on expression: 
                   ^
example:
    vcpkg install zlib zlib:x64-windows curl boost
Write-Error: D:\a\_temp\bc1f4013-df4b-4b93-aa85-ab1d7047096e.ps1:2
Line |
   2 |  . .github\windows-prepare.ps1
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | vcpkg install exited with 1

Attachments (0)

Change History (2)

comment:1 by Jun Omae, 18 months ago

Owner: set to Jun Omae
Status: newassigned

I encountered another issue after applying workaround for the issue of response file:

Traceback (most recent call last):
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\unittest\__main__.py", line 18, in <module>
    main(module=None)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\unittest\main.py", line 101, in __init__
    self.runTests()
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\unittest\main.py", line 271, in runTests
    self.result = testRunner.run(self.test)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\unittest\runner.py", line 184, in run
    test(result)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\unittest\suite.py", line 122, in run
    test(result)
  File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\unittest\suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "D:\a\trac\trac\trac\test.py", line 265, in run
    self.setUp()
  File "D:\a\trac\trac\trac\tests\functional\__init__.py", line 136, in setUp
    self._testenv = self.env_class(env_path, server_port, baseurl)
  File "D:\a\trac\trac\trac\tests\functional\testenv.py", line 81, in __init__
C:\Users\runneradmin\AppData\Local\venv\lib\site-packages\pkg_resources\__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
    self.create()

  File "D:\a\trac\trac\trac\tests\functional\testenv.py", line 155, in create
    self._tracadmin('initenv', self.tracdir, self.dburi,
  warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
  File "D:\a\trac\trac\trac\tests\functional\testenv.py", line 274, in _tracadmin
    raise Exception("Failed while running trac-admin with arguments "

Exception: Failed while running trac-admin with arguments ('initenv', 'D:\\a\\trac\\trac\\testenv\\trac', 'sqlite:db/trac.db', '--config=D:\\a\\trac\\trac\\testenv\\config.ini').
Initenv for 'D:\a\trac\trac\testenv\trac' failed. 
Exitcode: 1 

None
Failed to create environment.

name '_swig_setattr' is not defined

Traceback (most recent call last):
  File "D:\a\trac\trac\trac\admin\console.py", line 428, in do_initenv
    self.__env = Environment(self.envname, create=True, options=options,
  File "D:\a\trac\trac\trac\core.py", line 142, in __call__
    self.__init__(*args, **kwargs)
  File "D:\a\trac\trac\trac\env.py", line 265, in __init__
    setup_participant.environment_created()
  File "D:\a\trac\trac\trac\versioncontrol\admin.py", line 177, in environment_created
    for repos in RepositoryManager(self.env).get_real_repositories():
  File "D:\a\trac\trac\trac\versioncontrol\api.py", line 669, in get_real_repositories
    repos = self.get_repository(reponame)
  File "D:\a\trac\trac\trac\versioncontrol\api.py", line 604, in get_repository
    repos = connector.get_repository(rtype, rdir,
  File "D:\a\trac\trac\tracopt\versioncontrol\svn\svn_fs.py", line 238, in get_repository
    repos = SubversionRepository(dir, params, self.log)
  File "D:\a\trac\trac\tracopt\versioncontrol\svn\svn_fs.py", line 270, in __init__
    self.repos = repos.svn_repos_open(root_path_utf8, self.pool)
  File "C:\Users\runneradmin\AppData\Local\subversion-1.14.2\x64\python\3.10\lib\libsvn\repos.py", line 350, in svn_repos_open
    return _repos.svn_repos_open(*args)
  File "C:\Users\runneradmin\AppData\Local\subversion-1.14.2\x64\python\3.10\lib\libsvn\repos.py", line 1613, in __setattr__
    return _set_instance_attr(self, name, value)
  File "C:\Users\runneradmin\AppData\Local\subversion-1.14.2\x64\python\3.10\lib\libsvn\repos.py", line 139, in _set_instance_attr
    return _swig_setattr(self, self.__class__, name, value)

NameError: name '_swig_setattr' is not defined

It is due to Subversion 1.14.2 is unable to build with SWIG 4.1 which is updated in https://github.com/actions/runner-images/commit/4cede79c69f29432d015075937060f75b894db58. I try to build after applying https://svn.apache.org/r1905173.

comment:2 by Jun Omae, 18 months ago

Resolution: fixed
Status: assignedclosed

Fixed in [17699:17700].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jun Omae to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.